forked from 1b-agent/opencadstudio-upstream
Align UNION solid properties palette
This commit is contained in:
1 parent
a59ea47990
commit
5857ffa2bd
2 files changed
+25
-10
No files matched your search
@@ -214,6 +214,21 @@ pub fn has_specialized_primitive_properties(
|
||||
)
|
||||
}
|
||||
|
||||
/// Solid history results whose public Properties palette is fully described by
|
||||
/// the common entity rows plus [`primitive_properties`]. A generic B-rep has
|
||||
/// no stable primitive dimensions to expose, but it still uses the compact
|
||||
/// Solid History palette rather than the internal ACIS/cache diagnostics.
|
||||
pub fn has_compact_solid_properties(
|
||||
document: &acadrust::CadDocument,
|
||||
handle: acadrust::Handle,
|
||||
) -> bool {
|
||||
has_specialized_primitive_properties(document, handle)
|
||||
|| matches!(
|
||||
document.solid_history_operation(handle),
|
||||
Some(SolidHistoryOperation::Brep(_))
|
||||
)
|
||||
}
|
||||
|
||||
pub fn reference_point(operation: &SolidHistoryOperation) -> Option<glam::DVec3> {
|
||||
match operation {
|
||||
SolidHistoryOperation::Box(value) | SolidHistoryOperation::Wedge(value) => world_point(
|
||||
|
||||
Reference in new issue
Block a user