forked from 1b-agent/opencadstudio-upstream
fix(tests): repair solid_model tri_count helper after upstream merge
mesh_from_solid was removed in the upstream merge; use tessellation(body).mesh.triangles directly.
This commit is contained in:
1 parent
3d35919656
commit
2e29f6c59e
1 file changed
+1
-3
@@ -441,9 +441,7 @@ mod tests {
|
||||
use super::*;
|
||||
|
||||
fn tri_count(body: &Body) -> usize {
|
||||
mesh_from_solid(body, [0.7, 0.7, 0.7, 1.0])
|
||||
.map(|m| m.lods[0].indices.len() / 3)
|
||||
.unwrap_or(0)
|
||||
tessellation(body).mesh.triangles.len()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user