mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
added test hook for "faces"
This commit is contained in:
@@ -144,17 +144,23 @@ module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
polyhedron(
|
pts = concat(top_pts, base_pts);
|
||||||
points = concat(top_pts, base_pts),
|
face_idxs = concat(
|
||||||
faces = concat(
|
|
||||||
top_tri_faces1, top_tri_faces2,
|
top_tri_faces1, top_tri_faces2,
|
||||||
base_tri_faces1, base_tri_faces2,
|
base_tri_faces1, base_tri_faces2,
|
||||||
side_faces1,
|
side_faces1,
|
||||||
side_faces2,
|
side_faces2,
|
||||||
side_faces3,
|
side_faces3,
|
||||||
side_faces4
|
side_faces4
|
||||||
)
|
);
|
||||||
);
|
|
||||||
|
polyhedron(
|
||||||
|
points = pts,
|
||||||
|
faces = face_idxs
|
||||||
|
);
|
||||||
|
|
||||||
|
// hook for testing
|
||||||
|
test_function_grapher_faces(pts, face_idxs);
|
||||||
}
|
}
|
||||||
|
|
||||||
module tri_to_lines(tri1, tri2) {
|
module tri_to_lines(tri1, tri2) {
|
||||||
@@ -220,4 +226,9 @@ module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// override it to test
|
||||||
|
module test_function_grapher_faces(points, faces) {
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user