Hello eneryone, I’am new at dynamo and i’am trying to complete the volume of a cuboid that is not full
In the image, at the botton of the solid there’s a hole that a want to fill
There is a way to do that?
Hi
BoundingBoxbyminimumvolume
Then
BoundixBox to cuboid
Cordially
Christian.stan
2 Likes
If this is Geometry created with Dynamo
you need a different method tho
I would try this, though it would require Python as CoEdges and Loops are not exposed as nodes:
- Extract the faces from the solid.
- Push each face into a new list of results.
- For each face in the original list:
- Extract the curve loops
- Filter out any loops which are external.
- For the remaining loops, extract the edges from their coedges.
- For each edge, extract the adjacent faces.
- Remove the active face (from the for loop started at step 3) from the list of faces.
- Remove any remaining faces from the list of results (step 2).
- For each index in the remaining face in the results list:
- Get the face at the index and extract the curve loops
- Remove any loops which are not exterior
- Extract the edges from the coedges of the loop
- Build a PolyCurve from the edges
- Extract the surface geometry of the face
- Trim the surface with the PolyCurve from step 4.4.
- Set the value at the index to the surface with no opening.
- Build a PolySurface from the remaining surface with no interior openings.
- While the edges of the PolySurface have a edge with only one adjacent surface and the number of attempts is less than the total number of faces in the PolySurface before starting:
- Get all the faces of the PolySurface.
- Get all the edges of the PolySurface.
- For each edge extract the adjacent faces and if only one is returned remove it from the list of faces (6.1).
- Build a new PolySurface from the remaining faces by extracting the surface geometry of each.
- Make a solid from the PolySurface which now only has a single set of joined faces all of which have no interior curve loops.
This should work for all solids with an opening into the interior of the mass, excepting conditions where the openings all lass though multiple faces (meaning all loops are external).
Thanks, it work perfectly!
1 Like