News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

version 23 and improper solids tricks

Started by prl, April 04, 2014, 11:26:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

As requested, http://forum.designcad.com/index.php?topic=5464.msg37368

Lar,  in unfolding the flying spaghetti monster pipe in the above referenced topic, I was taking the facets of the cylinder and relocating them along a straight line.  There are some pictures and animated gifs showing what I'm doing.

Anyway, as a final product I wanted to eliminate all the vertical edges between the planes and since polygon add doesn't work (even after you vector convert), I tried the "solid define" trick.  Then I added all the improper solids (planes) together and that cleaned up the lines.

This works up to version 22, but version  23 tells me it can't add the planes together. Had to create the improper solids using getattr and putattr.

Lar

Thank for honoring my request, Prl.

Quote from: prl on April 04, 2014, 11:26:22 AM
This works up to version 22, but version  23 tells me it can't add the planes together. Had to create the improper solids using getattr and putattr.
So you are saying you could not use the 'Solid Add' command. 

I tried what I think you are doing (got a collection of planes, line them along side each other so the edges are touching, solid define all but one of them. Solid define the last plane by itself. Apply the 'Solid Add' command to the two improper solids) and it worked ok. I even tried it with 'switch-back' holes in the planes. It worked, making the switch back line invisible.

The only time it did not work was when I neglected to solid define the single plane, so I was applying a solid operation to one solid and another non-solid.

If I solid defined all of the planes together, then put a dummy plane outside of the set and solid define that by itself, then solid subtract the two improper solids (rather than solid add), the result was a clean plane with no intermediate points. This is better than using the Weld command (edit menu>selection edit>convert>weld...), which result in a single plane, but with more points than where in the planes were touching each other.

Lar

prl

#2
Quote from: Lar on April 04, 2014, 12:59:43 PM
Thank for honoring my request, Prl.

Yes, programmatically I took the planes, moved them, undid the solid id from the original solid (basically making them only a plane), then did "solid define" in the code and when finished started adding all those improper solids together.  It was giving me the error message about grids/planes etc.

Just keep an eye on this sort of thing. It surprised me since versions 17 to 22 acted one way, and version 23 acted differently.