Minor modification.
This commit is contained in:
parent
2593bbba4e
commit
d85d3c336f
@ -70,13 +70,13 @@ export function IsTwoManifold (object3D)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (object3D instanceof Model) {
|
if (object3D instanceof Model) {
|
||||||
let isSolid = true;
|
let isTwoManifold = true;
|
||||||
object3D.EnumerateMeshInstances ((meshInstance) => {
|
object3D.EnumerateMeshInstances ((meshInstance) => {
|
||||||
if (isSolid) {
|
if (isTwoManifold) {
|
||||||
isSolid = IsTwoManifold (meshInstance);
|
isTwoManifold = IsTwoManifold (meshInstance);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return isSolid;
|
return isTwoManifold;
|
||||||
} else {
|
} else {
|
||||||
const topology = GetTopology (object3D);
|
const topology = GetTopology (object3D);
|
||||||
for (let edgeIndex = 0; edgeIndex < topology.edges.length; edgeIndex++) {
|
for (let edgeIndex = 0; edgeIndex < topology.edges.length; edgeIndex++) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user