Community
Fusion Design, Validate & Document
Stuck on a workflow? Have a tricky question about a Fusion (formerly Fusion 360) feature? Share your project, tips and tricks, ask questions, and get advice from the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Convert mesh .stl to solid .stp

13 REPLIES 13
SOLVED
Reply
Message 1 of 14
bapca
12877 Views, 13 Replies

Convert mesh .stl to solid .stp

Hello.

I'm working on designing a device that fits perfectly on a patient's skull. I reconstructed the patient's skull from a CT scan using some specialized software. I exported the skull as a .STL mesh file with over 300.000 points. I can simplify the mesh but not a lot if I want a high-quality model. I imported this mesh into Fusion and designed my device. Up to this point, everything works well.

 

I'm working with an engineer who requires solid .STP files for machining another part of the device. This is where I'm stuck. I tried to export my design alongside the mesh as a .STP file but only the device was exported (the skull is missing from the .STP file). I've read that I could convert the mesh to Brep first, but that doesn't work for mesh with over 10.000 points.

 

Does anyone have a solution? Can I convert a complicated STL file to STP? Is there a software from the Autodesk suite that is dedicated to working with STP files?  I've spent hours trying to solve this.

Thanks,

BC

13 REPLIES 13
Message 2 of 14
Cotral.RD2
in reply to: bapca

To transform a mesh to brep, the mesh has to be quad and not triangular. The workflow is shown in the video below :

https://www.youtube.com/watch?v=heFWhzNwPFI

Pavan HEMMEGE VENKATAPPA
Fusion 360 Ultimate User
Message 3 of 14
TrippyLighting
in reply to: Cotral.RD2

While it does not apply to this particular situation, a low res tri mesh can be directly converted into a BRep.

Problem with the two proposes software solutions is that they are only available in form of subscriptions at rather rediculous prices.

 

As such I’d experiment with Instant Meshes, Meshmixer to repair meshes and Meshlab. Those  are all available for free.

 


EESignature

Message 4 of 14
jeff_strater
in reply to: bapca

@bapca,

 

Today, there is not a single, great approach to the workflow you are trying to achieve.  If the area of the skull mesh you are trying to match is localized, or you are very patient, you can use "Object Snap" in Sculpt mode to create a Sculpt body that snaps to the mesh, and that can be converted into a BRep body, which STEP supports.  Here is a short sample screencast:

 

 

 

A bit more speculatively, we are working on some technology for converting triangle meshes to quad meshes, which can then be converted to Sculpt (TSpline) bodies.  If you want me to try this technology on an example mesh, I'd be happy to try it out, and send you back a BRep body.  That's not a general solution, I realize, but if this particular case is urgent, I'd be happy to help you out.  We'd just have to figure out a way for you to share the STL file with me (confidentially, of course).

 

Jeff


Jeff Strater
Engineering Director
Message 5 of 14
furutas
in reply to: jeff_strater

Hi @bapca,

I'm very interested in the problem you have and would like to get a bit more insight into your workflow. You mentioned that you are working with someone who requires "solid .STP files for machining another part of the device".  I'd be curious to understand the specific workflow here - do they need to machine the actual skull geometry? Does this device need to use surfaces from the skull geometry as part of the device geometry? How much of the skull geometry do they need to use, is it the whole thing or perhaps just a small region of it? 

Thanks

Sugi

Autodesk



Fusion 360 Development Team
Message 6 of 14
bapca
in reply to: furutas

Hi @furutas.

I'm designing a device that has to be precisely located relative to some brain areas which have been localized from an MRI. So patients have to equip a "hat" that fits their skulls perfectly and will ensure the device is properly aligned with brain areas of interest. The device can be 3D printed, but the "hat" has to be machined in some very specific medical-grade material to comply with our ethical protocol. The engineer doing the machining requires a .STP file for his part to match perfectly the skull geometry. Only the upper half of the skull is needed for this.

Ideally, I would export the skull and brain areas segmented by the imagery software to .STP files directly, unfortunately this software exports to .STL only.

Message 7 of 14
TrippyLighting
in reply to: bapca

@bapca do you understand the essential difference between .stl and .stp files and the data contained in them and why the machining engineer needs a .stp file ?


EESignature

Message 8 of 14
bapca
in reply to: TrippyLighting

No unfortunately I haven't been able to find good explantion of the difference. I was reading about triangle and quad tesselations but again there aren't a lot of good ressourcesabout it online.

Message 9 of 14
TrippyLighting
in reply to: bapca

OK, I did not think so. while the resources for that are easy to find online, they are not necessarily presented in a cohesive fashion.

 

A mesh, no matter whether it is comprised of triangles, quads, or N-gons has a finite resolution. The specialty with Quads is that they can be "cleanly" subdivided into ever smaller quads, but even then a mesh has a finite resolution.

 

.stl files are one the earliest form of least common denominator 3D data and were primarily developed as a means of one-way data exchange between a computer and a 3D printer. A high resolution mesh consisting purely of triangles also does not have any topology (in the mathematical sense) , which makes it very difficult to recreate the original surface topology from it.

 

The .stp or STEP format, which can also contain meshes, more commonly contains BRep information, so solid geometry and NURBS surfaces. These are mathematically precise surface definitions that are free of any resolution, down to the precision of the computer they are created on.

This brings us to the purpose of CAD software, which is for the most part precision, accuracy. Geometry in a CAD software is created by the geometric modeling kernel. That is also the same part of the software that will create the CAM tool path based on that mathematically precise, resolution free surface representation. 

That's the reason your CAD/CAM engineer wants a .stp file.

 

Most CAM software packages can also machine .stl files but it's usually not used for applications requiring precision and it is also not simple creating a smooth tool path from a segmented surface.

 

Then there are quad meshes as used in many Sub-D modeling packages. Sub-D means subdivision surface.

The subdivision control cage is is (or at least should be) a quad mesh that is used to control the shape a subdivided surface. The vertices of that mesh are basically control points.

In concept that is very similar to how NURBS surfaces are created. The shape of a NURBS surface are created by using a quad mesh of control points. Quad meshes as well as NURBS describe a topology!

 

Initially computer graphics and animation software such as Maya actually used NURBS surfaces to create models. However NURBS surfaces are relatively "stiff" and were difficult to deform for the purpose of animation and also computatiopally heavy , so Sub-D meshes were developed to deal with these problems.

 

This similarity brings us to T-Splines, PolyNurbs and other technologies that allow us to convert a quad mesh into a NURBS surface. Thus with high resolution .stl files the recommendation is often to re-mesh or re-topologize them with other software into a quad mesh , which in most cases will allow output as a .obj file and that qualmish can then be converted by any of these technologies.

 

But there is no direct conversion form a .stl into usable .stp for your purpose.


EESignature

Message 10 of 14
jeff_strater
in reply to: bapca

@bapca,

 

Is there any way that you can share some sample mesh files with @furutas and I?  We would, of course, keep them under strict control, and only use them for internal use.  We could demonstrate the mesh-to-brep conversion I mentioned above, and I can also provide a better explanation of the "Object Snap" workflow.  We can take this communication out of the public forum if that works better for any privacy intellectual property concerns you might have.

 

Thanks,

Jeff


Jeff Strater
Engineering Director
Message 11 of 14
bapca
in reply to: jeff_strater

Thanks to all for your suggestions. In the end, I found a way to convert it using a combination of softwares (Meshlab, Instant Meshes and Fusion 360):

(1) Export the shape as .stl from the imagery software (3D Slicer).

(2) Convert the .stl file to .obj in Meshlab.

(3) Remesh with quad tesselation using Instant Meshes.

(4) Open quad mesh in Autodesk Fusion 360. Turn off design history and use the Mesh-to-Brep function.

(5) Finally export as .stp.

 

 

Message 12 of 14
TrippyLighting
in reply to: bapca

Really ? You have a quad mesh and then convert that to a BRep ?

Did you read any of what I wrote above ?


EESignature

Message 13 of 14
bapca
in reply to: TrippyLighting

What alternative do I have? I do what I can with the softwares I have. Fusion 360 seems to require converting first to Brep in order to export as .STP.

Message 14 of 14
TrippyLighting
in reply to: bapca

If you truly have a quad mesh then you can convert it first into a T-Spline.

Then you can convert it into a BRep. You'l immediately see the difference as the BRep surface created from the T-SpLine is smooth as opposed to the faceted surface created by converting a mesh directly into a BRep.

 


EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report