M3D / M3D / Algorithm / MeshCompare
Class: MeshCompare
Table of contents
Constructors
Methods
Constructors
constructor
• new MeshCompare(): MeshCompare
Returns
Methods
isModelSimilar
▸ isModelSimilar(model1
, model2
, accuracy
): boolean
Parameters
Name | Type | Description |
---|---|---|
model1 | Model | |
model2 | Model | |
accuracy | number | 精度 |
Returns
boolean
Description
判断模型是否一致
▸ isModelSimilar(model1
, pnts1
, model2
, pnts2
, accuracy
): boolean
Parameters
Name | Type | Description |
---|---|---|
model1 | Model | |
pnts1 | Vector3 [] | |
model2 | Model | |
pnts2 | Vector3 [] | |
accuracy | number | 精度 |
Returns
boolean
Description
判断模型是否一致
meshCompare
▸ meshCompare(models1
, scene
, defaultAccuracy?
): void
Parameters
Name | Type | Description |
---|---|---|
models1 | Map <number , Model > | |
scene | Scene | |
defaultAccuracy? | boolean | 是否使用默认精度 |
Returns
void
Description
Mesh比对
smallerSort
▸ smallerSort(a
, b
): number
Parameters
Name | Type |
---|---|
a | number |
b | number |
Returns
number
Description
顶点数据按X轴从小到大排序