mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2024-12-15 02:59:55 +08:00
Minor voxelisation optimisation
This commit is contained in:
parent
1741529526
commit
bb607353e5
@ -72,6 +72,10 @@ export class Triangle {
|
||||
const f2 = Vector3.sub(v0, v2);
|
||||
|
||||
const axis = [
|
||||
Vector3.cross(f0, f2),
|
||||
xAxis,
|
||||
yAxis,
|
||||
zAxis,
|
||||
fastCrossXAxis(f0),
|
||||
fastCrossXAxis(f1),
|
||||
fastCrossXAxis(f2),
|
||||
@ -80,11 +84,7 @@ export class Triangle {
|
||||
fastCrossYAxis(f2),
|
||||
fastCrossZAxis(f0),
|
||||
fastCrossZAxis(f1),
|
||||
fastCrossZAxis(f2),
|
||||
xAxis,
|
||||
yAxis,
|
||||
zAxis,
|
||||
Vector3.cross(f0, f2)
|
||||
fastCrossZAxis(f2)
|
||||
];
|
||||
|
||||
for (const ax of axis) {
|
||||
|
Loading…
Reference in New Issue
Block a user