Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/difftest/src/units/topology_brep_p9.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ fn rust(i: &Inputs, initial: &[f64]) -> Result<Output, HarnessError> {
.get(2..)
.ok_or_else(|| error("missing initial export"))?,
)?;
// As the native B-rep: each edge owns its curve and each face its surface, under the
// arena keys op 0's `BrepQuery::default()` names them by (the import leaves curves
// unowned and owns face f's surface as `1 + f`), and a face-owned surface carries the
// face's tolerance. Without it the B-rep cache trees hold no edges or faces.
crate::util::own_arena_geometry(&mut b);
for f in b.faces().ids().collect::<Vec<_>>() {
b.sync_face_surface_tolerance(f).map_err(|e| error(&e))?;
}
// As the shim, after setup and export: `b->m_bEditingEnabled = editing`.
b.set_editing_enabled(i.editing);
let mut k = Kernel::default();
Expand Down
Loading