Editing Compound Geometry Objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Editing Compound Geometry Objects

lpday
I have a 2D model made of multiple compound geometries. A typical component would be a half circle removed from a rectangular object.

Is there any way to edit these objects or find out what size they are?  If I wanted to make that rectangle wider, I can find no way to do it.

I have also had difficulty importing 2D flat geometries from Solidworks.  Is there a good way to do this?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Editing Compound Geometry Objects

Precise Simulation
Administrator
lpday wrote
I have a 2D model made of multiple compound geometries. A typical component would be a half circle removed from a rectangular object.

Is there any way to edit these objects or find out what size they are?  If I wanted to make that rectangle wider, I can find no way to do it.
There is an "Inspect/Edit Geometry Object" and a "Transformation" Button in the GUI.

https://www.featool.com/doc/geom#op_edit
https://www.featool.com/doc/geom#trsf_ops

I have also had difficulty importing 2D flat geometries from Solidworks.  Is there a good way to do this?
How do you try to import them (what format), if you have completely planar surfaces aligned with the x/y-plane (z=0) in STEP format it should be no issue.
Reply | Threaded
Open this post in threaded view
|

Re: Editing Compound Geometry Objects

lpday
I can inspect the objects, but I get no useful information from them.  All I get is this:

Reply | Threaded
Open this post in threaded view
|

Re: Editing Compound Geometry Objects

lpday
In reply to this post by Precise Simulation
This is the Object I want to modify - or just find it's coordinates.  Thanks

Reply | Threaded
Open this post in threaded view
|

Re: Editing Compound Geometry Objects

Precise Simulation
Administrator
lpday wrote
This is the Object I want to modify - or just find it's coordinates.  Thanks


That is a compound geometry object, without first splitting/decomposing it into its parts you can only move/scale/rotate the object with https://www.featool.com/doc/geom#trsf_ops

To find the size you can export the geometry to the Matlab command line using "Export Geometry > To MATLAB Workspace" from the "Geometry" menu and use the command

  bounding_box = geom.objects{strcmp(cellfun(@(o)o.tag, geom.objects, 'UniformOutput', 0), 'CS1')}.bbox
  vertices = geom.objects{strcmp(cellfun(@(o)o.tag, geom.objects, 'UniformOutput', 0), 'CS1')}.v