converting mesh to brep....painful!

converting mesh to brep....painful!

Anonymous
Not applicable
22,462 Views
36 Replies
Message 1 of 37

converting mesh to brep....painful!

Anonymous
Not applicable

so I have an educational license for fusion 360.  Not sure if that changes what revision I have.  I've watched videos on u tube showing me how to go about converting from an stl file so I can edit.  I open up a stl on my screen. I try to convert mesh to Brep and it has too many facets.  The utube guy shows me to highlight the body and then click on modify and then click "reduce".  The problem is I don't have a reduce option to click on.  I try to go from model to mesh and it doesn't let me change.  It tells me I can click on personal preferences and "enable mesh workbench" but there4 is no enable mesh workbench.  My question is 1). why isn't there a reduce facets option? 2) how do I edit a stl file?  Its kind of painful.  I do have the latest upgrades because I get the notice on top of my screen when I open the program...thanks

0 Likes
Accepted solutions (1)
22,463 Views
36 Replies
Replies (36)
Message 2 of 37

TheCADWhisperer
Consultant
Consultant

I recommend that beginners not attempt to work with imported mesh files.

Can you File>Export and then Attach your *.f3d file here?

0 Likes
Message 3 of 37

jeff_strater
Community Manager
Community Manager
Accepted solution

@Anonymous - this is a topic which comes up over and over again on the Fusion forum.  It's worth a bit of discussion about some various types of models in the 3D world.  There are really two main types of representation of 3D solids that are popular today (with a few other types that are less common, but exhibit aspects of one of the main types, so we'll stick to those two for now).  Those model types are "mesh" and "boundary representation" or "BRep" for short.  

 

Let's look at those two representations:

  • A "mesh" is usually understood to be a faceted representation of a solid.  The facets usually consist of 3 or 4 sided polygons.  Triangle meshes (3 sided) are the most common, because a triangle is always planar, so the math needed to deal with them is simpler.  A faceted representation is always an approximation of the actual shape of the solid.  The smaller the facets, the more accurate is the representation (but the larger the data size).  This type of representation is used as kind of a least-common-denominator representation of a solid.  All graphics display systems use a triangle meshes as their representation.  3D printers, also, speak in meshes.  In fact, the STL format was invented for the very first 3D printers, called STereo Lithography printers (hence "STL" as the format type).  There are 3D design systems which create and edit meshes as their native geometry type.  Meshmixer and 3DS Max are two of those, but there are many others.  Those types of products are good for certain kinds of designs (characters for video games or movies, highly organic shapes, etc).
  • "BRep".  BRep uses mathematical representations of the outer surfaces of a body, instead of facets.  This allows a much more compact and accurate representation of the solid.  For instance, to represent a sphere, all you need to record is the center and radius of the sphere.  A plane can be represented with a point and a 3D vector describing the orientation of the plane in space.  Of course, it's more complicated than that, because you have to describe how different faces relate to other faces, how the planes or cylinders are trimmed, etc.  But, the key here is that this representation can be exact down to the precision of the computer hardware in use.  Some operations that BRep is good at include things like creating a fillet along an edge of the solid.  In BRep, you can make use of the mathematical properties of the geometry.  For instance, you can create a work axis along the axis of a cylinder, because the system understands that cylinder.  You cannot do such things in a mesh representation, because that cylinder is just a collection of triangles.

The key here is that each representation is good for some things, not good for others.  Generally, BRep is good for representing things for which precision is necessary, like the parts of a machine.  I would not want to drive in a car in which the engine had been designed using a mesh modeler Smiley Happy  On the other hand, I would not want to model a monster for a movie using BRep.

 

Conversions between these two types.  This is the crux of your question.  Today, there is a 100% reliable conversion from BRep to mesh.  If there were not, you would not be able to see a graphical representation of your design on the screen, or 3D print it.  However, there is not a good, 100% reliable conversion between mesh and BRep.  Think about the problems here:  Trying to guess from a set of triangles that this is a cylinder is a very hard problem, mathematically.  There is some interesting work going on here:  automatic-conversion-3d-models-csg-trees.  Someday we may be able to do that, but right now, I am unaware of any system which can do this reliably.  Fusion does have the "Mesh to BRep" command, but this is a very dumb conversion.  Each triangle is converted into a separate BRep face.  This conversion does not produce any of the benefits of a BRep representation.  Cylinders are not cylinders afterward.  In fact, this conversion produces the worst of both worlds - the representation is inaccurate, and the model is very heavy.  I wish we had never introduced this command into Fusion at all, to be honest.  It is misleading to customers who are new to CAD, and produces bad results.

 

Fusion does support editing mesh models, but to a very limited extent.  The mesh workspace was created with a few goals in mind:  using meshes as visual reference (think about a mesh model of a room, and you want to design a chair for that room), and for reverse engineering a BRep from a mesh.  That is, if you have a mesh representation of an object that has some geometric properties (planar and cylindrical faces, etc), using the Mesh Section command and Fit Curves to Mesh Section commands, help the user to construct a precise representation of that object.  But, this is far from an automatic conversion.  It is highly manual.

 

Anyway, I hope that this overly complex explanation sheds some light on the nature of meshes and BReps, and helps to set correct expectations about the conversions, and hopes for editing meshes in Fusion.  In general, @TheCADWhisperer  is right - don't expect to download a design from Thingiverse and expect to make meaningful edits to it in Fusion.

 


Jeff Strater
Engineering Director
Message 4 of 37

Anonymous
Not applicable

Great explanation of the 2 worlds in 3D space! 

Just to give a simplified, maybe trivial analogy (allow some guest comment from a triangle guy):

People may be aware of the difference of  pixel- and vector based 2D graphics.

In a vector (analog to BRep) based image you may zoom in and find an arc always staying an arc with a certain line thickness.

Zooming into a pixel (analog to a mesh) graphic you'll soon find lines turning into stairs of squares getting bigger and bigger in the view.

It's easy to convert a vector image into a pixel graphic by dropping the function onto a certain resolution, but the conversion from a pixel drawn arc to a vector representation is still some issue.

Now to stick to this analogy: Sources grabbing reality (a photography as well as some 3D scan) measure the outer world. This results in measured 2D pixels or 3D points (and a meshed 3D representation). Means: The quality of a a mesh representation (ignoring plane surfaces) depends on the amount of measured points the same way as a photography's quality depends on its resolution. Machining such an an amount of data results in many, many short linear travels, each needing acceleration and deceleration (ignoring stuff like LAF).

Against constructing an object can be achieved much better by using its intended parameters (as lengths, radius, vectors aso) and based on math functions one can get faster machining (concerning CNC > never understood why printing is that much mesh-based) in a shorter processing time.

 

Both worlds dream of the other's advantages... 

Message 5 of 37

TheCADWhisperer
Consultant
Consultant

@jeff_strater 

You should add this information to this thread.

It would be useful to have one (clean) thread that covers this topic in detail for reference when users get into a complex situation that is beyond the simple "solutions".

0 Likes
Message 6 of 37

jeff_strater
Community Manager
Community Manager

@Anonymous - that is an excellent analogy, thanks for adding it.  It does really capture the essence of the difference between these two representations.

 


Jeff Strater
Engineering Director
0 Likes
Message 7 of 37

TrippyLighting
Consultant
Consultant

@jeff_strater wrote:

 

Anyway, I hope that this overly complex explanation sheds some light on the nature of meshes and BReps, and helps to set correct expectations about the conversions, and hopes for editing meshes in Fusion.  

 


This isn't at all an overly complex explanation and it is very necessary!

 

A lot of today's hobbyists, makers, artists and even degreed engineers work with very powerful tools, but In my experience less than 10% really have a good understanding  what is going on under the hood of their tools.

 

If you are again in such a typing mood, you might want to simply consider adding these lines to the Google docs document about meshes  I invited you to. Maybe we can motivate each other to make that a more complete document and something that is worth referring new users to 😉

 

 

 


EESignature

Message 8 of 37

JDMather
Consultant
Consultant

@TrippyLighting wrote:

...and even degreed engineers work with very powerful tools, but In my experience less than 10% really have a good understanding  what is going on under the hood of their tools.

I have been trying to get Autodesk top brass to understand what they have under the hood of their tools for years and formulate a strategy for developing an "Olympic" level team of educators to make full use of the tools in the 21st century. 

In response, I've been told that I am too focused on the tools.

 


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


Message 9 of 37

Anonymous
Not applicable
Well for starters you need to go to personal preferences and enable the mesh workbench. I learned that from another beginner. Then you open the stl file and then I am able to convert from stl to Brep. I also got a nice link to a you tube video that explains it in detail. Thanks for the response people.
0 Likes
Message 10 of 37

TrippyLighting
Consultant
Consultant

@Anonymous  I think the purpose of @jeff_strater's post was to explain why what you are trying to do is not a good idea.

You may proceed at your own risk 😉

 


EESignature

0 Likes
Message 11 of 37

TheCADWhisperer
Consultant
Consultant

Can you File>Export and then Attach the converted stl to *.f3d brep file here?

(or simply the original stl file?)

0 Likes
Message 12 of 37

Anonymous
Not applicable
Maybe so but being 59 years young and having 43 years in welding/fabrication/machining hands on and have been dabbling with auto cad for many years I know that “experience is the best teacher”. I’m simply trying to modify a stl file from thingverse to 3D print. Learning from mistakes is part of the journey. It’s just a matter of clicking on things in the right sequence. Fusion 360 doesn’t make it easy but I’m learning. Cheers and thanks to all that responded I do appreciate.
0 Likes
Message 13 of 37

Anonymous
Not applicable

If your source is a mesh and your desired output is a mesh: Any reasons why you want to convert it to a Brep temporarily?  Don't want to say that mesh based operations can do all the stuff you might know from auto cad...

but there is some power in (join at) meshmixer .

 

0 Likes
Message 14 of 37

TheCADWhisperer
Consultant
Consultant

@Anonymous wrote:
Maybe so but being 59 years young ....

 

62.5 years here. More than 30 of those in CAD. Can you Attach your *.f3d file here?
0 Likes
Message 15 of 37

Anonymous
Not applicable
I am just trying to modify a stl file for 3D printing. So I’m told that in order to do this I need to convert to Brep so I can do my editing. Then I will save to stl after edit so I can 3D print my new revision of my file. Thanks
0 Likes
Message 16 of 37

Anonymous
Not applicable
It’s not a specific file at this time. I’m simply trying to learn how to revise a file from thingverse. Your a young man too. Thanks
0 Likes
Message 17 of 37

Anonymous
Not applicable

thank you for the explanation, it was quite clear.  I have found my order of commands on the keyboard to get where I need to convert the mesh to brep but I've also found out that if the file has too many facets I'll get a warning box pop up telling me ex: "file has 59,000 facets conversion has been aborted".  So I think my best bet is design from scratch.  I'm sure I will learn more but as many people do I was looking for the quick way...  thanks to all of you for your response...

Message 18 of 37

Anonymous
Not applicable

Ive found the solution and it was mental..!

 

convert mesh to brep

 

split the body (anywhere - dosent have to be in half or anything)

 

voila! no triangle'd surface..!

 

Jason

Message 19 of 37

jonYDM8U
Enthusiast
Enthusiast

Almost does it!  

 

Fillets are faces now...so if you want rounded corners you have to do some work to get them smooth.

0 Likes
Message 20 of 37

Anonymous
Not applicable
It appears as a link model

Cut that pink model in half

Then it goes grey and perfectly editable
0 Likes