DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Solid fill

Started by magic, June 24, 2013, 10:59:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

magic

I'm sure that we have all tried to create a circle, a polygon or a similar enclosed space that should have been a plane and then done a sweep or an extrude only to find that the solid solid that we thought we'd created was only a solid shell.

Therefore I should like to suggest a solid fill command/function, which could fill the empty space in a solid shell much like Hatch Fill does.
It's a kind of magic!




Dr PR

magic,

This would be extremely useful for solids that are to be exported for 3D printing.

We can export solids as DXF files and then import the DXF into AccuTrans. AccuTrans will generate a STL file, but if the DesignCAD solid has holes in it (incomplete solid) the STL file will have holes. Many (all?) 3D printers will not work with incomplete solids.

This is a bit tricky. DesignCAD will have to recognize gaps between polygons in solids and then patch over the gaps. This requires generating new polygons using existing points in the polygons/grids forming the solid. It will need to identify all points at the edges of the gap and then create polygons using points that are in a plane.

There is potential here for creating "butterfly" polygons with edges that cross, and that would be as bad as the original gaps. Or non-planar polygons, and that would be bad also.

The simplest way to do this would be to create triangles only when filling the gaps. It could be an iterative process:

1. Find a gap - if there are none stop.
2. Identify the points around the edge of the gap.
3. Add a triangle to connect three of these points.
4. Combine the original solid and the new triangle into a new solid.
5. Go to 1.

This wouldn't produce an optimized result, but it would work. After this process is completed the facet cleanup routines that are used after Solid Subtract could be used to combine triangles that are in common planes to create new polygons having more than three coplanar points.

Phil
DesignCAD user since 1987

magic

Hi Phil,

Quote from: Dr PR on June 25, 2013, 01:25:53 PMThis would be extremely useful for solids that are to be exported for 3D printing.

That's what I thought!

Quote from: Dr PR on June 25, 2013, 01:25:53 PMWe can export solids as DXF files and then import the DXF into AccuTrans. AccuTrans will generate a STL file

Btw, Phil, how did you get on exporting vrml files instead of .DXF to convert via AccuTrans 3D?
It's a kind of magic!




Dr PR

magic,

VRML export from DesignCAD to AccuTrans worked nicely. I think that is the route I will use in the future - I don't like DXF. However, the VRML solids will also be "leaky" if there are holes in the DesignCAD solid.

There are a few programs available on the Internet to patch holes in leaky solids. A fellow at AccuTrans recommended trying Netfabb Studio Basic (free). I haven't used it yet but I think Shipmodeler has experimented with it. There is a higher level version for sale that does more.

http://www.netfabb.com/basic.php

I also found some pretty expensive ($300 up) programs to massage 3D printer files.

Phil
DesignCAD user since 1987

DrollTroll

I think it should be possible to meet you partway.

I propose that we might add a "Cap Grid" command to automatically cap simple cases of open-ended grids.

The command should check the starting and ending grid lines – if they're closed and all points in the grid line are coplanar, it would generate a planar cap for each end, then add the new planes and the grid to a new solid. If neither end of the grid is closed and/or coplanar, the command should simply fail with an "grid not closed, or ends not planar" message. If one end is closed and coplanar but the other is not, the command should seal the one that it can, and close with a message "one end could not be sealed".

25 years with DesignCAD

Lar

#5
Good idea but I think the user would need to confirm the caps somehow, before they are finalized.

Lar

DrollTroll

25 years with DesignCAD

Lar

"Undo and Retry" generally works...

Lar

prl

Quote from: Lar on June 12, 2014, 02:50:29 PM
"Undo and Retry" generally works...

You're killing me.  You've got sun, sand, seas, and "undo and retry" works.  Lucky man Lar.

magic

Hi DT,

Quote from: DrollTroll on June 12, 2014, 01:49:08 PM
I think it should be possible to meet you partway.

I propose that we might add a "Cap Grid" command to automatically cap simple cases of open-ended grids.

The command should check the starting and ending grid lines – if they're closed and all points in the grid line are coplanar, it would generate a planar cap for each end, then add the new planes and the grid to a new solid. If neither end of the grid is closed and/or coplanar, the command should simply fail with an "grid not closed, or ends not planar" message. If one end is closed and coplanar but the other is not, the command should seal the one that it can, and close with a message "one end could not be sealed".

This sounds like it might be viable, but how will it work re. Phil's remarks on STL export and 3D printing?
It's a kind of magic!




DrollTroll

My proposal is not intended as a universal solution, only to help fix the simple cases where the user forgot to create a plane before extrusion/sweep. I wasn't attempting to address the general case of a "solid" having arbitrary gaps.
25 years with DesignCAD