Solid mesh to surface

I have tree branches of solid box meshes that have been cut with curvy surfaces. the output has at least two planar and parallel faces. The problem is that during the cutting of the solid box meshes, these planar and parallel faces turn from a single face into a bunch of faces. right now, I want to turn them into a single face to convert the solid cut mesh to Brep. Does anyone know how to do this?

00.gh (128.5 KB)
01_If 00 does not Open for you.gh (1.7 MB)


Try the solid tools merge all faces command in rhino to see if that would work to start.

There is an unpopular plugin in smaller gh. If you want see the mesh, the larger one.

Please eliminate the plugin.

can you let me know the name of plugin?

I used mergeallcoplanarfaces
It did not work.

Core… something. The warning doesn’t show up after the first time.

missing
missing2
missing3

Not sure what you’re doing but this looks similar? And is way simpler.


00_2024Mar30a.gh (41.0 KB)

P.S. I tried adding thickness to the extrusions but didn’t quite pull it off.


00_2024Mar30b.gh (66.0 KB)

1 Like

This isn’t quite the same thing but it’s really simple. The extrusions are “perfect” closed breps because the faces are planarized before creating the boundary surfaces that are extruded.


00_2024Mar30c.gh (46.4 KB)

Dear @Joseph_Oster thank you for your time. I want the subD version of the initial mesh that you have worked on it, to cut these extruded surfaces(polygon). It is important for the fabrication as I want to to have a continuous smoothness instead of being discrete. Therefore, as the mesh or polysurface (brep) couldn’t cut the flat extruded polygons (brep), I have used the subD version of initial mesh as the cuuter and change the flat extruded polygons (brep) to simple mesh to use MeshSplit component. It is worth mentioning that when I wanted to use the FaceBoundaries as input for Patch component to have the polygonal mesh to cut the breps, the patch doesn’t work properly. If it worked, I wouldn’t have converted the breps to simple mesh.

Sorry, I still don’t fully understand what you are doing but am intrigued about creating these extrusions.

I tried many different ways… This method uses a polysurface version of the mesh (yellow group) to split extrusions of arbitrary length (height?) that originate on derived planes, one per face. After that, the bottom cuts are extruded to a ‘Height’ slider value (blue group), edges are lofted between inner and outer extrusions and joined to create closed breps.

Smaller faces can fail to create good extrusions if ‘Offset’ and ‘Thickness’ values are too large.


00_2024Mar31b.gh (55.7 KB)

1 Like

Thank you @Joseph_Oster
I apologize for late response.
Your code has worked; however, as you can see in the image there is a problem that affect the entire form. I have baked both the polygonal meshes and the Breps. Breps has passed thorough the meshes (yello parts).

I baked the yellow group to a blue layer and the green group to a yellow layer. Looks good to me?


P.S. I see issues like you do when I bake the original mesh to the blue layer instead of the TriRemesh ‘T’ output (yellow group). Is that what you did?

*Your topic probably needed to be “Solid mesh to nurbs” as you seem to be requesting a single unified solid (closed brep) per each multi-solid mesh group.

Check if this workaround* helps:
001.gh (1.7 MB)

*It does perform some edge/face cleanup while preserving overall shape.

See details below.

Summary

Method (summary):

  • Get cross sections of solid mesh boxes from fitted planes
  • Intersect these cross sections to form center lines
  • Check/Align directions of these lines
  • Straight-loft these aligned lines
  • Simple-mesh-join the loft faces
  • Offset/Thicken based on your original specified distance


Yes, I have used polygons, output of the Triremesh, as it gives me a more smooth face.
I appreciate you for your responses dear @Joseph_Oster

Dear @anon78208900 thank you for your time and response. I check your method today. Thanks