Hi,
following this topic
https://forum.freecadweb.org/viewtopic.php?f=3&t=21933
https://forum.freecadweb.org/viewtopic. ... 10#p171078
a user asked to have this feature:
Export a STEP model with only external 3D geometry...
I found that this is a feature available in commercial CADs like for example in PTCreo:
http://www.cadlab.tuc.gr/proehelp/aax/about_s0.htm
I made some test and found two different approaches:
1) make a union of all parts
- this can be much time consuming and giving some weird results because of OCC
2) connect all objects (using FC0.17)
- this seems to be fast and very promising
The problem comes when the objects are not all with some intersection... then 'Connect' will connect all objects, but make the detached invisible and not exported...
Is there a way to achieve this through some operations or may be with a macro?
Maurice
FR: Export STEP with only external geometry
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: FR: Export STEP with only external geometry
I go back to rfrank's method, to go to mesh and back to topo shape, in your link. Don't know the performance/file size issues.easyw-fc wrote:Is there a way to achieve this through some operations or may be with a macro?
See also here :https://forum.freecadweb.org/viewtopic.php?f=8&t=22046
This method would probably be intolerant to geometry errors, but would accomplish the goal.
"fight the good fight"
Re: FR: Export STEP with only external geometry
but what I'm trying to reach is to get only the skin of the model, conserving the geometry...sgrogan wrote: I go back to rfrank's method, to go to mesh and back to topo shape, in your link. Don't know the performance/file size issues.
See also here :https://forum.freecadweb.org/viewtopic.php?f=8&t=22046
This method would probably be intolerant to geometry errors, but would accomplish the goal.
This is possible with 'Connect', but Connect will remove detached objects... so what I miss is a method to Connect Parts in a 'smart' way... connecting only parts that have common and group them...
that should be possible, at least with a macro and it will achieve:
1) only external geometry will be saved
2) fast way to 'Convert' the model
3) conserve mechanical external geometrical details
Re: FR: Export STEP with only external geometry
I know creo a bit (i don't have acces to it atm). I'm not sure how creo handles hollow models(if it just add the inner components too) and how it handle not connecting parts... I can imagine that creo just makes it two components... but that's an assumption.
If you have acces to creo i'm curious about the result!!
If you have acces to creo i'm curious about the result!!
Re: FR: Export STEP with only external geometry
Hi Mauriceeasyw-fc wrote:Is there a way to achieve this through some operations or may be with a macro?
Maurice
perhaps you could get somewhere by looking at how Drawing and/or TechDraw handle (or determine which are) "hidden lines"?
Jim
Re: FR: Export STEP with only external geometry
two components would be the right behavior also for FC but instead I get 1 component where the detached is hidden instead of a separate objJee-Bee wrote:... and how it handle not connecting parts... I can imagine that creo just makes it two components... but that's an assumption.
Re: FR: Export STEP with only external geometry
Hi @Jim,jmaustpc wrote: Hi Maurice
perhaps you could get somewhere by looking at how Drawing and/or TechDraw handle (or determine which are) "hidden lines"?
Jim
I found I can check if two shapes have a distance > 0 to see if they are detached:
Code: Select all
distance = shape_a.distToShape(shape_b)
Maurice