forked from 1b-agent/opencadstudio-upstream
feat(mview): add viewport creation options
Support polygonal and object viewports through native clip-boundary handles, including clipped rendering and selection. Closes #525
This commit is contained in:
1 parent
3d90450b3f
commit
b8889ccd20
10 files changed
+1038
-135
No files matched your search
@@ -458,6 +458,12 @@ impl crate::entities::traits::FallbackTess for Viewport {
|
||||
fn fallback_geometry(
|
||||
&self,
|
||||
) -> crate::scene::convert::tess_util::FallbackGeometry {
|
||||
// A clipped viewport uses its linked boundary entity as its visible
|
||||
// frame. Drawing the viewport's rectangular extents as well leaves an
|
||||
// incorrect box around polygonal/Object MVIEW results.
|
||||
if !self.clip_boundary_handle.is_null() {
|
||||
return (vec![], vec![], vec![], vec![]);
|
||||
}
|
||||
let cx = self.center.x;
|
||||
let cy = self.center.y;
|
||||
let cz = self.center.z;
|
||||
|
||||
Reference in new issue
Block a user