cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Checking if imported STL file is closed

ProFeature
14-Alexandrite

Checking if imported STL file is closed

Hello, community!

 

When I import a stl file, I have no way of knowing whether it is closed (other than the visual search for a green colored hole).

ProFeature_0-1726055516290.png

 

Is there a simple way to ensure that the imported STL file is closed?

 

I appreciate the responses in advance.

Thanks

ACCEPTED SOLUTION

Accepted Solutions
ProFeature
14-Alexandrite
(To:ProFeature)

Hi all,

 

I found that measuring volume is the simplest test to determine whether the model is closed.

If the volume measurement value is not zero, then the model is closed.

 

Open:

ProFeature_0-1726482073771.png

Closed

ProFeature_1-1726482191750.png

 

Thanks

View solution in original post

9 REPLIES 9
tbraxton
22-Sapphire I
(To:ProFeature)

Import data doctor has some tools to help identify and correct geometry of import features. Having said this, the quickest method to identify open quilts is to use a custom color scheme to increase contrast of open edges of quilts. I would typically use a black background and display the import geometry in wireframe and look for the open edges based on the color. You may need to zoom in on areas to see them.

 

About Import DataDoctor in Creo (ptc.com)

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
ProFeature
14-Alexandrite
(To:tbraxton)

Thanks @tbraxton @, but your answer does not meet my need at all. I'm asking about facet model, and IDD doesn't check stl.

 

Thanks

tbraxton
22-Sapphire I
(To:ProFeature)

What version of Creo are you working in? Do you have a "bad" stl file as an example that you can post here? If the import data is not closed, is it not a surface model when imported? If it is an open quilt upon import then IDD should be accessible.  In past releases that is my recollection of what happened when importing STL into part mode, perhaps that has changed with new versions.

 

To edit facet models, you need to use the Creo Restyle extension which is an optional add on. If you have this option installed, then you can access this functionality to close holes in a facet model.

 

To Fill Holes in the Faceted Geometry (ptc.com)

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
ProFeature
14-Alexandrite
(To:tbraxton)

Hi @tbraxton 

 

I work with Creo 10. I've attached an example of an open stl (which I opened 😎).

ProFeature_0-1726135962533.png 

ProFeature_1-1726136009276.png

 

 


I repeat, IDD does not support imported STL files.
The concept of using a dark mode is well-known, but it is a "nice to have," rather than a definitive analysis. The question of "where" is secondary.

tbraxton
22-Sapphire I
(To:ProFeature)

IDD will not work with facet features in Creo 7+, I am not sure in what release this changed as IDD at one time did deal with STL import data. This shows how long it has been since I faced this issue of bad STL mesh.

 

For facet features REX module is required to work with them. I am not aware of any automatic validation tools to check the STL data on import and identify specific geometry issues. I am not well versed in the use of the REX module but maybe others here can offer some insight into workflows or best practices.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
StephenW
23-Emerald II
(To:ProFeature)

For stl files specifically, there are some online repair tools I have used on occasion. I don't remember which one(s) i have used but I just google for STL repair tool 

ProFeature
14-Alexandrite
(To:ProFeature)

Hi all,

 

I found that measuring volume is the simplest test to determine whether the model is closed.

If the volume measurement value is not zero, then the model is closed.

 

Open:

ProFeature_0-1726482073771.png

Closed

ProFeature_1-1726482191750.png

 

Thanks

I think people were thinking that you wanted to know how to fix an STL file if it was missing a facet or facets.

It's possible to fix them if you really need  a manifold solid, but it's not an automatic thing.

You need to have the STL file in ASCII format, not binary. If your source file is binary, you can re-output it to ASCII after reading it into Creo.

Using any of the techniques mentioned here, find the missing facet.

Do an analysis of the missing facet vertices, recording the X,Y,Z coordinates for each.

Edit the ASCII STL file and add in another facet structure. You'll need to use the vertices to calculate  the facet normal vector. It's the cross product of two vectors defined by the three vertices.

If you add in all the missing facets, the object should be a manifold solid. Hopefully.

ProFeature
14-Alexandrite
(To:KenFarley)

Hi @KenFarley 

 

My topic was determining whether an imported model is closed (yes or no). I found the answer to this question by measuring its volume. The issue of closing holes is secondary.

There is a convenient tool in Creo for closing holes, so I don't see the point in manipulating the STL file's ASCII.

 

ProFeature_0-1726491344656.png

 

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags