@mlightcad/data-model 1.7.12 → 1.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +224 -224
- package/dist/data-model.cjs +3 -3
- package/dist/data-model.js +2080 -1576
- package/dist/dxf-parser-worker.js +54 -54
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -1
- package/lib/converter/AcDbEntitiyConverter.js +71 -9
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
- package/lib/entity/AcDbPolyFaceMesh.d.ts +103 -0
- package/lib/entity/AcDbPolyFaceMesh.d.ts.map +1 -0
- package/lib/entity/AcDbPolyFaceMesh.js +343 -0
- package/lib/entity/AcDbPolyFaceMesh.js.map +1 -0
- package/lib/entity/AcDbPolygonMesh.d.ts +113 -0
- package/lib/entity/AcDbPolygonMesh.d.ts.map +1 -0
- package/lib/entity/AcDbPolygonMesh.js +385 -0
- package/lib/entity/AcDbPolygonMesh.js.map +1 -0
- package/lib/entity/index.d.ts +2 -0
- package/lib/entity/index.d.ts.map +1 -1
- package/lib/entity/index.js +2 -0
- package/lib/entity/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { AcGeBox3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
+
import { AcDbDxfFiler } from '../base';
|
|
4
|
+
import { AcDbOsnapMode } from '../misc';
|
|
5
|
+
import { AcDbCurve } from './AcDbCurve';
|
|
6
|
+
import { AcDbEntityProperties } from './AcDbEntityProperties';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a polygon mesh vertex in AutoCAD.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AcDbPolygonMeshVertex {
|
|
11
|
+
/** The 3D position of the vertex */
|
|
12
|
+
position: AcGePoint3d;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new polygon mesh vertex.
|
|
15
|
+
* @param position The 3D position of the vertex
|
|
16
|
+
*/
|
|
17
|
+
constructor(position: AcGePoint3dLike);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents a polygon mesh entity in AutoCAD.
|
|
21
|
+
*/
|
|
22
|
+
export declare class AcDbPolygonMesh extends AcDbCurve {
|
|
23
|
+
/** The entity type name */
|
|
24
|
+
static typeName: string;
|
|
25
|
+
get dxfTypeName(): string;
|
|
26
|
+
/** The number of vertices in the M direction */
|
|
27
|
+
private _mCount;
|
|
28
|
+
/** The number of vertices in the N direction */
|
|
29
|
+
private _nCount;
|
|
30
|
+
/** Whether the mesh is closed in the M direction */
|
|
31
|
+
private _closedM;
|
|
32
|
+
/** Whether the mesh is closed in the N direction */
|
|
33
|
+
private _closedN;
|
|
34
|
+
/** The vertices of the mesh */
|
|
35
|
+
private _vertices;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new polygon mesh entity.
|
|
38
|
+
* @param mCount The number of vertices in the M direction
|
|
39
|
+
* @param nCount The number of vertices in the N direction
|
|
40
|
+
* @param vertices The vertices of the mesh
|
|
41
|
+
* @param closedM Whether the mesh is closed in the M direction
|
|
42
|
+
* @param closedN Whether the mesh is closed in the N direction
|
|
43
|
+
*/
|
|
44
|
+
constructor(mCount: number, nCount: number, vertices: AcGePoint3dLike[], closedM?: boolean, closedN?: boolean);
|
|
45
|
+
/**
|
|
46
|
+
* Gets the number of vertices in the M direction.
|
|
47
|
+
*/
|
|
48
|
+
get mCount(): number;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the number of vertices in the N direction.
|
|
51
|
+
*/
|
|
52
|
+
get nCount(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Gets whether the mesh is closed in the M direction.
|
|
55
|
+
*/
|
|
56
|
+
get closedM(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Gets whether the mesh is closed in the N direction.
|
|
59
|
+
*/
|
|
60
|
+
get closedN(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Gets whether this mesh is closed.
|
|
63
|
+
*/
|
|
64
|
+
get closed(): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Sets whether this mesh is closed.
|
|
67
|
+
*/
|
|
68
|
+
set closed(value: boolean);
|
|
69
|
+
/**
|
|
70
|
+
* Gets the number of vertices in the mesh.
|
|
71
|
+
*/
|
|
72
|
+
get numberOfVertices(): number;
|
|
73
|
+
/**
|
|
74
|
+
* Gets the vertex at the specified index.
|
|
75
|
+
* @param index The index of the vertex
|
|
76
|
+
*/
|
|
77
|
+
getVertexAt(index: number): AcDbPolygonMeshVertex;
|
|
78
|
+
/**
|
|
79
|
+
* Gets the vertex at the specified M and N coordinates.
|
|
80
|
+
* @param m The M coordinate
|
|
81
|
+
* @param n The N coordinate
|
|
82
|
+
*/
|
|
83
|
+
getVertexAtMN(m: number, n: number): AcDbPolygonMeshVertex;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the geometric extents (bounding box) of this mesh.
|
|
86
|
+
*/
|
|
87
|
+
get geometricExtents(): AcGeBox3d;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the grip points for this mesh.
|
|
90
|
+
*/
|
|
91
|
+
subGetGripPoints(): AcGePoint3d[];
|
|
92
|
+
/**
|
|
93
|
+
* Gets the object snap points for this mesh.
|
|
94
|
+
*/
|
|
95
|
+
subGetOsnapPoints(osnapMode: AcDbOsnapMode, _pickPoint: AcGePoint3dLike, _lastPoint: AcGePoint3dLike, snapPoints: AcGePoint3dLike[]): void;
|
|
96
|
+
/**
|
|
97
|
+
* Returns the full property definition for this mesh entity.
|
|
98
|
+
*/
|
|
99
|
+
get properties(): AcDbEntityProperties;
|
|
100
|
+
/**
|
|
101
|
+
* Draws this mesh using the specified renderer.
|
|
102
|
+
*/
|
|
103
|
+
subWorldDraw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
104
|
+
/**
|
|
105
|
+
* Writes DXF fields for this object.
|
|
106
|
+
*/
|
|
107
|
+
dxfOutFields(filer: AcDbDxfFiler): this;
|
|
108
|
+
/**
|
|
109
|
+
* Writes this object to the DXF output.
|
|
110
|
+
*/
|
|
111
|
+
dxfOut(filer: AcDbDxfFiler, allXdata?: boolean): this;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=AcDbPolygonMesh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbPolygonMesh.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbPolygonMesh.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH,qBAAa,qBAAqB;IAChC,oCAAoC;IACpC,QAAQ,EAAE,WAAW,CAAA;IAErB;;;OAGG;gBACS,QAAQ,EAAE,eAAe;CAGtC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAgB;IAEhD,IAAa,WAAW,WAEvB;IAED,gDAAgD;IAChD,OAAO,CAAC,OAAO,CAAQ;IACvB,gDAAgD;IAChD,OAAO,CAAC,OAAO,CAAQ;IACvB,oDAAoD;IACpD,OAAO,CAAC,QAAQ,CAAS;IACzB,oDAAoD;IACpD,OAAO,CAAC,QAAQ,CAAS;IACzB,+BAA+B;IAC/B,OAAO,CAAC,SAAS,CAAyB;IAE1C;;;;;;;OAOG;gBAED,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,eAAe,EAAE,EAC3B,OAAO,UAAQ,EACf,OAAO,UAAQ;IAUjB;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAExB;IAED;;OAEG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAED;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB;IAOjD;;;;OAIG;IACH,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,qBAAqB;IAK1D;;OAEG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAyBhC;IAED;;OAEG;IACH,gBAAgB;IAQhB;;OAEG;IACH,iBAAiB,CACf,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,eAAe,EAAE;IAa/B;;OAEG;IACH,IAAI,UAAU,IAAI,oBAAoB,CAuFrC;IAED;;OAEG;IACH,YAAY,CAAC,QAAQ,EAAE,YAAY;IA0CnC;;OAEG;IACM,YAAY,CAAC,KAAK,EAAE,YAAY;IAgBzC;;OAEG;IACM,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,UAAQ;CAqBtD"}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbOsnapMode } from '../misc';
|
|
18
|
+
import { AcDbCurve } from './AcDbCurve';
|
|
19
|
+
/**
|
|
20
|
+
* Represents a polygon mesh vertex in AutoCAD.
|
|
21
|
+
*/
|
|
22
|
+
var AcDbPolygonMeshVertex = /** @class */ (function () {
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new polygon mesh vertex.
|
|
25
|
+
* @param position The 3D position of the vertex
|
|
26
|
+
*/
|
|
27
|
+
function AcDbPolygonMeshVertex(position) {
|
|
28
|
+
this.position = new AcGePoint3d(position.x, position.y, position.z || 0);
|
|
29
|
+
}
|
|
30
|
+
return AcDbPolygonMeshVertex;
|
|
31
|
+
}());
|
|
32
|
+
export { AcDbPolygonMeshVertex };
|
|
33
|
+
/**
|
|
34
|
+
* Represents a polygon mesh entity in AutoCAD.
|
|
35
|
+
*/
|
|
36
|
+
var AcDbPolygonMesh = /** @class */ (function (_super) {
|
|
37
|
+
__extends(AcDbPolygonMesh, _super);
|
|
38
|
+
/**
|
|
39
|
+
* Creates a new polygon mesh entity.
|
|
40
|
+
* @param mCount The number of vertices in the M direction
|
|
41
|
+
* @param nCount The number of vertices in the N direction
|
|
42
|
+
* @param vertices The vertices of the mesh
|
|
43
|
+
* @param closedM Whether the mesh is closed in the M direction
|
|
44
|
+
* @param closedN Whether the mesh is closed in the N direction
|
|
45
|
+
*/
|
|
46
|
+
function AcDbPolygonMesh(mCount, nCount, vertices, closedM, closedN) {
|
|
47
|
+
if (closedM === void 0) { closedM = false; }
|
|
48
|
+
if (closedN === void 0) { closedN = false; }
|
|
49
|
+
var _this = _super.call(this) || this;
|
|
50
|
+
_this._mCount = mCount;
|
|
51
|
+
_this._nCount = nCount;
|
|
52
|
+
_this._closedM = closedM;
|
|
53
|
+
_this._closedN = closedN;
|
|
54
|
+
_this._vertices = vertices.map(function (v) { return new AcDbPolygonMeshVertex(v); });
|
|
55
|
+
return _this;
|
|
56
|
+
}
|
|
57
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "dxfTypeName", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return 'POLYLINE';
|
|
60
|
+
},
|
|
61
|
+
enumerable: false,
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "mCount", {
|
|
65
|
+
/**
|
|
66
|
+
* Gets the number of vertices in the M direction.
|
|
67
|
+
*/
|
|
68
|
+
get: function () {
|
|
69
|
+
return this._mCount;
|
|
70
|
+
},
|
|
71
|
+
enumerable: false,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "nCount", {
|
|
75
|
+
/**
|
|
76
|
+
* Gets the number of vertices in the N direction.
|
|
77
|
+
*/
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._nCount;
|
|
80
|
+
},
|
|
81
|
+
enumerable: false,
|
|
82
|
+
configurable: true
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "closedM", {
|
|
85
|
+
/**
|
|
86
|
+
* Gets whether the mesh is closed in the M direction.
|
|
87
|
+
*/
|
|
88
|
+
get: function () {
|
|
89
|
+
return this._closedM;
|
|
90
|
+
},
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "closedN", {
|
|
95
|
+
/**
|
|
96
|
+
* Gets whether the mesh is closed in the N direction.
|
|
97
|
+
*/
|
|
98
|
+
get: function () {
|
|
99
|
+
return this._closedN;
|
|
100
|
+
},
|
|
101
|
+
enumerable: false,
|
|
102
|
+
configurable: true
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "closed", {
|
|
105
|
+
/**
|
|
106
|
+
* Gets whether this mesh is closed.
|
|
107
|
+
*/
|
|
108
|
+
get: function () {
|
|
109
|
+
return this._closedM;
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Sets whether this mesh is closed.
|
|
113
|
+
*/
|
|
114
|
+
set: function (value) {
|
|
115
|
+
this._closedM = value;
|
|
116
|
+
},
|
|
117
|
+
enumerable: false,
|
|
118
|
+
configurable: true
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "numberOfVertices", {
|
|
121
|
+
/**
|
|
122
|
+
* Gets the number of vertices in the mesh.
|
|
123
|
+
*/
|
|
124
|
+
get: function () {
|
|
125
|
+
return this._vertices.length;
|
|
126
|
+
},
|
|
127
|
+
enumerable: false,
|
|
128
|
+
configurable: true
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* Gets the vertex at the specified index.
|
|
132
|
+
* @param index The index of the vertex
|
|
133
|
+
*/
|
|
134
|
+
AcDbPolygonMesh.prototype.getVertexAt = function (index) {
|
|
135
|
+
if (index < 0 || index >= this._vertices.length) {
|
|
136
|
+
throw new Error('Vertex index out of bounds');
|
|
137
|
+
}
|
|
138
|
+
return this._vertices[index];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Gets the vertex at the specified M and N coordinates.
|
|
142
|
+
* @param m The M coordinate
|
|
143
|
+
* @param n The N coordinate
|
|
144
|
+
*/
|
|
145
|
+
AcDbPolygonMesh.prototype.getVertexAtMN = function (m, n) {
|
|
146
|
+
var index = m * this._nCount + n;
|
|
147
|
+
return this.getVertexAt(index);
|
|
148
|
+
};
|
|
149
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "geometricExtents", {
|
|
150
|
+
/**
|
|
151
|
+
* Gets the geometric extents (bounding box) of this mesh.
|
|
152
|
+
*/
|
|
153
|
+
get: function () {
|
|
154
|
+
if (this._vertices.length === 0) {
|
|
155
|
+
return new AcGeBox3d(new AcGePoint3d(0, 0, 0), new AcGePoint3d(0, 0, 0));
|
|
156
|
+
}
|
|
157
|
+
var minX = Number.MAX_VALUE;
|
|
158
|
+
var minY = Number.MAX_VALUE;
|
|
159
|
+
var minZ = Number.MAX_VALUE;
|
|
160
|
+
var maxX = -Number.MAX_VALUE;
|
|
161
|
+
var maxY = -Number.MAX_VALUE;
|
|
162
|
+
var maxZ = -Number.MAX_VALUE;
|
|
163
|
+
this._vertices.forEach(function (vertex) {
|
|
164
|
+
minX = Math.min(minX, vertex.position.x);
|
|
165
|
+
minY = Math.min(minY, vertex.position.y);
|
|
166
|
+
minZ = Math.min(minZ, vertex.position.z);
|
|
167
|
+
maxX = Math.max(maxX, vertex.position.x);
|
|
168
|
+
maxY = Math.max(maxY, vertex.position.y);
|
|
169
|
+
maxZ = Math.max(maxZ, vertex.position.z);
|
|
170
|
+
});
|
|
171
|
+
return new AcGeBox3d(new AcGePoint3d(minX, minY, minZ), new AcGePoint3d(maxX, maxY, maxZ));
|
|
172
|
+
},
|
|
173
|
+
enumerable: false,
|
|
174
|
+
configurable: true
|
|
175
|
+
});
|
|
176
|
+
/**
|
|
177
|
+
* Gets the grip points for this mesh.
|
|
178
|
+
*/
|
|
179
|
+
AcDbPolygonMesh.prototype.subGetGripPoints = function () {
|
|
180
|
+
var gripPoints = new Array();
|
|
181
|
+
this._vertices.forEach(function (vertex) {
|
|
182
|
+
gripPoints.push(vertex.position);
|
|
183
|
+
});
|
|
184
|
+
return gripPoints;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Gets the object snap points for this mesh.
|
|
188
|
+
*/
|
|
189
|
+
AcDbPolygonMesh.prototype.subGetOsnapPoints = function (osnapMode, _pickPoint, _lastPoint, snapPoints) {
|
|
190
|
+
switch (osnapMode) {
|
|
191
|
+
case AcDbOsnapMode.EndPoint:
|
|
192
|
+
this._vertices.forEach(function (vertex) {
|
|
193
|
+
snapPoints.push(vertex.position);
|
|
194
|
+
});
|
|
195
|
+
break;
|
|
196
|
+
default:
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
Object.defineProperty(AcDbPolygonMesh.prototype, "properties", {
|
|
201
|
+
/**
|
|
202
|
+
* Returns the full property definition for this mesh entity.
|
|
203
|
+
*/
|
|
204
|
+
get: function () {
|
|
205
|
+
var _this = this;
|
|
206
|
+
return {
|
|
207
|
+
type: this.type,
|
|
208
|
+
groups: [
|
|
209
|
+
this.getGeneralProperties(),
|
|
210
|
+
{
|
|
211
|
+
groupName: 'geometry',
|
|
212
|
+
properties: [
|
|
213
|
+
{
|
|
214
|
+
name: 'mCount',
|
|
215
|
+
type: 'float',
|
|
216
|
+
editable: false,
|
|
217
|
+
accessor: {
|
|
218
|
+
get: function () { return _this._mCount; }
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'nCount',
|
|
223
|
+
type: 'float',
|
|
224
|
+
editable: false,
|
|
225
|
+
accessor: {
|
|
226
|
+
get: function () { return _this._nCount; }
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'vertices',
|
|
231
|
+
type: 'array',
|
|
232
|
+
editable: false,
|
|
233
|
+
itemSchema: {
|
|
234
|
+
properties: [
|
|
235
|
+
{
|
|
236
|
+
name: 'x',
|
|
237
|
+
type: 'float',
|
|
238
|
+
editable: true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: 'y',
|
|
242
|
+
type: 'float',
|
|
243
|
+
editable: true
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'z',
|
|
247
|
+
type: 'float',
|
|
248
|
+
editable: true
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
accessor: {
|
|
253
|
+
get: function () {
|
|
254
|
+
return _this._vertices.map(function (v) { return ({
|
|
255
|
+
x: v.position.x,
|
|
256
|
+
y: v.position.y,
|
|
257
|
+
z: v.position.z
|
|
258
|
+
}); });
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
groupName: 'others',
|
|
266
|
+
properties: [
|
|
267
|
+
{
|
|
268
|
+
name: 'closedM',
|
|
269
|
+
type: 'boolean',
|
|
270
|
+
editable: true,
|
|
271
|
+
accessor: {
|
|
272
|
+
get: function () { return _this._closedM; },
|
|
273
|
+
set: function (v) {
|
|
274
|
+
_this._closedM = v;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
name: 'closedN',
|
|
280
|
+
type: 'boolean',
|
|
281
|
+
editable: true,
|
|
282
|
+
accessor: {
|
|
283
|
+
get: function () { return _this._closedN; },
|
|
284
|
+
set: function (v) {
|
|
285
|
+
_this._closedN = v;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
};
|
|
293
|
+
},
|
|
294
|
+
enumerable: false,
|
|
295
|
+
configurable: true
|
|
296
|
+
});
|
|
297
|
+
/**
|
|
298
|
+
* Draws this mesh using the specified renderer.
|
|
299
|
+
*/
|
|
300
|
+
AcDbPolygonMesh.prototype.subWorldDraw = function (renderer) {
|
|
301
|
+
var lines = [];
|
|
302
|
+
// Draw M-direction lines
|
|
303
|
+
for (var m = 0; m < this._mCount; m++) {
|
|
304
|
+
for (var n = 0; n < this._nCount; n++) {
|
|
305
|
+
var current = this.getVertexAtMN(m, n);
|
|
306
|
+
var nextN = n + 1;
|
|
307
|
+
if (nextN >= this._nCount) {
|
|
308
|
+
if (this._closedN) {
|
|
309
|
+
nextN = 0;
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
var next = this.getVertexAtMN(m, nextN);
|
|
316
|
+
lines.push(current.position);
|
|
317
|
+
lines.push(next.position);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
// Draw N-direction lines
|
|
321
|
+
for (var n = 0; n < this._nCount; n++) {
|
|
322
|
+
for (var m = 0; m < this._mCount; m++) {
|
|
323
|
+
var current = this.getVertexAtMN(m, n);
|
|
324
|
+
var nextM = m + 1;
|
|
325
|
+
if (nextM >= this._mCount) {
|
|
326
|
+
if (this._closedM) {
|
|
327
|
+
nextM = 0;
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
var next = this.getVertexAtMN(nextM, n);
|
|
334
|
+
lines.push(current.position);
|
|
335
|
+
lines.push(next.position);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return renderer.lines(lines);
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Writes DXF fields for this object.
|
|
342
|
+
*/
|
|
343
|
+
AcDbPolygonMesh.prototype.dxfOutFields = function (filer) {
|
|
344
|
+
_super.prototype.dxfOutFields.call(this, filer);
|
|
345
|
+
filer.writeSubclassMarker('AcDbPolygonMesh');
|
|
346
|
+
var flag = 16; // Polygon mesh flag
|
|
347
|
+
if (this._closedM)
|
|
348
|
+
flag |= 1;
|
|
349
|
+
if (this._closedN)
|
|
350
|
+
flag |= 32;
|
|
351
|
+
filer.writeInt16(66, 1); // Has vertices
|
|
352
|
+
filer.writeInt16(70, flag);
|
|
353
|
+
filer.writeInt32(71, this._mCount);
|
|
354
|
+
filer.writeInt32(72, this._nCount);
|
|
355
|
+
return this;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Writes this object to the DXF output.
|
|
359
|
+
*/
|
|
360
|
+
AcDbPolygonMesh.prototype.dxfOut = function (filer, allXdata) {
|
|
361
|
+
if (allXdata === void 0) { allXdata = false; }
|
|
362
|
+
_super.prototype.dxfOut.call(this, filer, allXdata);
|
|
363
|
+
for (var i = 0; i < this.numberOfVertices; i++) {
|
|
364
|
+
var vertex = this.getVertexAt(i);
|
|
365
|
+
filer.writeStart('VERTEX');
|
|
366
|
+
filer.writeHandle(5, this.database.generateHandle());
|
|
367
|
+
filer.writeObjectId(330, this.objectId);
|
|
368
|
+
filer.writeSubclassMarker('AcDbEntity');
|
|
369
|
+
filer.writeSubclassMarker('AcDbVertex');
|
|
370
|
+
filer.writeSubclassMarker('AcDbPolygonMeshVertex');
|
|
371
|
+
filer.writePoint3d(10, vertex.position);
|
|
372
|
+
filer.writeInt16(70, 16); // Polygon mesh vertex flag
|
|
373
|
+
}
|
|
374
|
+
filer.writeStart('SEQEND');
|
|
375
|
+
filer.writeHandle(5, this.database.generateHandle());
|
|
376
|
+
filer.writeObjectId(330, this.objectId);
|
|
377
|
+
filer.writeSubclassMarker('AcDbEntity');
|
|
378
|
+
return this;
|
|
379
|
+
};
|
|
380
|
+
/** The entity type name */
|
|
381
|
+
AcDbPolygonMesh.typeName = 'PolygonMesh';
|
|
382
|
+
return AcDbPolygonMesh;
|
|
383
|
+
}(AcDbCurve));
|
|
384
|
+
export { AcDbPolygonMesh };
|
|
385
|
+
//# sourceMappingURL=AcDbPolygonMesh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbPolygonMesh.js","sourceRoot":"","sources":["../../src/entity/AcDbPolygonMesh.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAInC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC;;GA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AAI,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAA;YACpD,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;YACvC,KAAK,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAA;YACvC,KAAK,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAA;YACvC,KAAK,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAA;YAClD,KAAK,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAA;YACvC,KAAK,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA,CAAC,2BAA2B;QACtD,CAAC;QAED,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;QAC1B,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAA;QACpD,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;QACvC,KAAK,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAA;QACvC,OAAO,IAAI,CAAA;IACb,CAAC;IA/VD,2BAA2B;IACX,wBAAQ,GAAW,aAAa,CAAA;IA+VlD,sBAAC;CAAA,AAjWD,CAAqC,SAAS,GAiW7C;SAjWY,eAAe"}
|
package/lib/entity/index.d.ts
CHANGED
|
@@ -27,5 +27,7 @@ export * from './AcDbRay';
|
|
|
27
27
|
export * from './AcDbViewport';
|
|
28
28
|
export * from './AcDbWipeout';
|
|
29
29
|
export * from './AcDbXline';
|
|
30
|
+
export * from './AcDbPolygonMesh';
|
|
31
|
+
export * from './AcDbPolyFaceMesh';
|
|
30
32
|
export * from './dimension';
|
|
31
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAA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;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
|
package/lib/entity/index.js
CHANGED
|
@@ -27,5 +27,7 @@ export * from './AcDbRay';
|
|
|
27
27
|
export * from './AcDbViewport';
|
|
28
28
|
export * from './AcDbWipeout';
|
|
29
29
|
export * from './AcDbXline';
|
|
30
|
+
export * from './AcDbPolygonMesh';
|
|
31
|
+
export * from './AcDbPolyFaceMesh';
|
|
30
32
|
export * from './dimension';
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
package/lib/entity/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,c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,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlightcad/data-model",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"require": "./dist/data-model.cjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@mlightcad/dxf-json": "1.1.
|
|
35
|
+
"@mlightcad/dxf-json": "1.1.3",
|
|
36
36
|
"iconv-lite": "^0.7.0",
|
|
37
37
|
"uid": "^2.0.2",
|
|
38
|
-
"@mlightcad/
|
|
39
|
-
"@mlightcad/geometry-engine": "3.2.
|
|
40
|
-
"@mlightcad/
|
|
38
|
+
"@mlightcad/graphic-interface": "3.3.13",
|
|
39
|
+
"@mlightcad/geometry-engine": "3.2.13",
|
|
40
|
+
"@mlightcad/common": "1.4.13"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"analyze": "pnpm run analyze:lib && pnpm run analyze:worker",
|