forked from 1b-agent/opencadstudio-upstream
Extend PEDIT for polygon meshes
This commit is contained in:
1 parent
2c9c5d04e1
commit
e345d89519
4 files changed
+203
-14
No files matched your search
@@ -262,6 +262,7 @@ impl OpenCADStudio {
|
||||
PeditTarget {
|
||||
is_poly: true,
|
||||
convertible: false,
|
||||
mesh_size: None,
|
||||
},
|
||||
)),
|
||||
acadrust::EntityType::Line(_) | acadrust::EntityType::Arc(_) => {
|
||||
@@ -270,9 +271,21 @@ impl OpenCADStudio {
|
||||
PeditTarget {
|
||||
is_poly: false,
|
||||
convertible: true,
|
||||
mesh_size: None,
|
||||
},
|
||||
))
|
||||
}
|
||||
acadrust::EntityType::PolygonMesh(mesh) => Some((
|
||||
h,
|
||||
PeditTarget {
|
||||
is_poly: true,
|
||||
convertible: false,
|
||||
mesh_size: Some((
|
||||
mesh.m_vertex_count.max(0) as usize,
|
||||
mesh.n_vertex_count.max(0) as usize,
|
||||
)),
|
||||
},
|
||||
)),
|
||||
_ => None,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user