#273 g-stl with body intersection

unexpected behavior


I have a problem when trying to convert a combination of solids to an stl file (I am using version 7.16.10 of brl-cad). The problem arises when the combination is an union between different solid bodies which also intersect. To simplify let us consider two solid bodies A and B. At some point A and B intersect and a part of B is in A. When converting this kind of volume to an stl one would only want to have the outer surface of thee union. Unfortunately this is not the case since the part of B that is in A has also a surface describing it and therefore there are extra facets which should not be there (at least according to this website http://wiki.netfabb.com/STL_Files_and_Triangle_Meshes\).

On the attached file the "bug" (maybe it's not a real bug but a feature) can be seen by converting the object completeGeomWithInOutlets.c to stl. Then the small cylinders that are intersecting with the rectangles are also present inside the rectangles once converted.

Do you have an idea about how to circumvent this problem?

Thank you in advance and best regards.


  •  malaspin

    malaspin - 2010-09-23


  • John Anderson

    John Anderson - 2010-09-24

    All of the g-xxx routines are based on converting brl-cad regions to the target format. The attached file has no regions. Try making the completeGeomWithInOutlets.c into a region (easily done with checkbox in the combination editor), then doing the g-stl again.

  •  malaspin

    malaspin - 2010-09-24
    • status: open --> open-accepted
  •  malaspin

    malaspin - 2010-09-24

    My bad. Thank you for the quick answer. It works just fine now.

    Thank you again.

  • Sean Morrison

    Sean Morrison - 2010-09-24
    • milestone: --> unexpected behavior
    • assigned_to: nobody --> johnranderson
    • status: open-accepted --> closed-invalid

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks