Skip to content

Commit ecfcbc2

Browse files
committed
Avoid access of HalfFace's approx field
1 parent d0ae354 commit ecfcbc2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/fj/src/process_model.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ pub fn process_model(model: Model, args: Arguments) -> Result {
1313
let triangles = model.topology.solids[model.solid]
1414
.boundary
1515
.iter()
16-
.flat_map(|&half_face| &model.topology.half_faces[half_face].approx);
16+
.flat_map(|&half_face| {
17+
model.topology.half_faces[half_face].approx(&model.topology.faces)
18+
});
1719

1820
let mut tri_mesh = TriMesh::new();
1921

20-
for &triangle in triangles {
22+
for triangle in triangles {
2123
tri_mesh.triangles.push(MeshTriangle {
2224
inner: triangle,
2325
is_internal: false,

0 commit comments

Comments
 (0)