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.

DesignCAD Smart Planes

Started by prl, March 02, 2015, 06:38:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

I put this in the discussion section assuming folks will add to this topic.

In another topic we were discussing DC "Smart" planes.   "Smart" planes are a clever DesignCAD creation where surfaces with internal openings are represented by a single multi-segment line.  The lines going from the perimeter of the solid to the openings and also the connecting lines between interior openings are switchback lines. 

Attached is a solid with lots of openings, the bottom red solid with drilled blue holes.

I've taken that solid and peeled it open.  Specifically, the middle solid has the front and back smart plane surfaces peeled open (90° to the remaining interior  openings planes).  Also you can see the normally hidden switchback lines defining the openings.  Keep in mind those front and back DesignCAD planes are a single multi-segment line.  That is what DesignCAD does normally when you punch holes in solids (the lower solid) by automatically hiding those double switchback lines. Pretty efficient way to define openings and a very clever algorithm!

Finally in the top most solid, I've taken the "smart" planes and tessellated them.  That is what gets (or should get) exported as of DC version 24 and will create a proper dwg/dxf.


prl

#1
"Smart" planes get extruded and rendered.

Pointy, ouch.




prl

#2
And for you Spock/Star Trek fans,  a DesignCAD Romulan Smart-Plane-of-Prey War-Bird Not-So-Solid. 




Edit:  In case you think I actually created that model intending it to be a spaceship or whatever you think it is, no.  It is a complex solid with openings I created for testing version 25 with respect to multilayer solids, internal openings  and some of the newer export options.   Peeling it open and extruding-along-a-curve for the smart planes does offer some rendering Sm_art fun.



samdavo

and tesselated can be found in which dictionary ?
:)

samdavo

#4
prl
so how did you tesselate those planes pls?  (first post).
I believe I could get the switchback lines, but not the additional "tesselating lines".

And arguably they seem to be helpful to understanding those smart planes -  and eg how to duplicate those bolt holes (different thread on Tricks and Tips), and sliding holes around a plate.

I am guessing it would be possible to slide those boltholes so that the tesselated "tiles"  start to overlap / interfere with a hole (?)   

Quote from: prl on March 02, 2015, 06:38:34 AM
...
Finally in the top most solid, I've taken the "smart" planes and tessellated them.  That is what gets (or should get) exported as of DC version 24 and will create a proper dwg/dxf.



ok - when I read it again, I believe you are talking V24, and I haven't checked it out thoroughly there yet.  Still, thanks for pointing it out.

Next question would be,  why does V24 have this instead of (or additional to?) the simple switchback lines?

samdavo

#5
PS - Somewhat relevant to switchback lines ( but nothing to do with tesselations - which would completely screw this up) ... I found (V22.1) that I ended up with "switchback lines" ... (edit)  of a sort - on second thoughts, maybe not lol...  BUT it would have been if I had subtracted extruded star-shaped etc prisms  from solid shapes which follow the outlines of the letters  when I exploded the letters of "Superman" written in American text - maybe after "make plane" as well.   - and all these lines were parallel.   And (on that occasion) I used those stripes to colour the letters in (red white and blue of course) ; 2 cents

samdavo

#6
By the way, I was wondering if this/these qualify as "smart planes",  eg the top of the R or the P  , each of which which looks more like a D within a D,  plus four stars within the area as well.

You can polysubtract them one by one, but you have to do it carefully as follows , viz

Write "Superman" in  American Vector font  (2D mode).
Vector convert
Combine (B) the lines around each of the D's to make a polygon (each)
Polygon subtract each of the stars from the larger D, in sequence SW, NW, NE, SE.

This operation actually slices the closed vector in two.  This is not the same as the switchback, but is similar yes?

Then you find you can't subtract the central D from the two strips that it overlaps at the same time - so you have to copy the entire shape - and twice -
Then you PolySubtract the small D from the left hand strip in one - (see shape 5 and 5a), 
then you PolySubtract the small D from the right hand strip in the other - (see shape 6 and 6a).
then you juxtapose 5a and  6a in the original location (neighbouring discrete stripes).

What you end up with is a series of planar vectors / stripes -  which can be changed to planes;  and can be coloured as required.   

PS As I say above, I think you WOULD get "smart planes" (and PROPER switchback lines) if you Solid-Subtract extruded star-shaped prisms (and D-shaped) from a solid extruded from the outside shape of the "outer D" of the letter. 

prl

#7
Quote from: samdavo on March 08, 2015, 06:18:23 PM
Next question would be,  why does V24 have this instead of (or additional to?) the simple switchback lines?

Hang on to your hat, this will get tricky.  V24 has the tessellated surfaces for two reasons.

1.  The tessellated surfaces will give you a proper dwg/dxf export where the internal openings of solids are NOT skinned over.

2.  The tessellated surfaces are the basis of the NEW RedSDK graphics engine.  So when you are running version 24 in RedSDK mode, DesignCAD takes the smart planes and tessellates them internally so that RedSDK can give you those lighting fast hidden line/shaded drawings.


Now how to get the tessellated surfaces I have shown in the graphic.  If you have version 24, you can take the solid with the smart planes and use the commands,  solid to surface followed by surface to solid  (buried under the >edit>selection edit>convert).  Rather clumsy to do and find, so I created a routine simply called, Tess.d3m that does that.  Also my routine only tessellates smart planes, whereas DesignCAD will tessellated everything including squares and rectangles which is a waste of computational energy.  All simple planes (no interior openings) including squares and rectangles are handled just fine with the continuous polyline perimeter definition approach.

prl

#8
Quote from: samdavo on March 08, 2015, 08:31:55 PM
PS As I say above, I think you WOULD get "smart planes" (and PROPER switchback lines) if you Solid-Subtract extruded star-shaped prisms (and D-shaped) from a solid extruded from the outside shape of the "outer D" of the letter. 

Sam, yes.  A smart plane would be a single multi-segment line that includes both 5a and 6a in your graphics from reply #7 reproduced below.




prl

For the smart plane shown in reply #9, here is a movie that traces the steps.

A movie - A demo showing the path of the 5a and 6a Smart Plane.  A single multi-segment line.

What is interesting and fascinating is that if you had a pen plotter or a CNC cutting machine, you can program the cutter to lift at the switchback lines and plunge at all other lines.  That would cut out your shape using a single continuous motion.

samdavo

#10
prl
I have redone the top half of a P (and/or R) - (subtracting starshaped extrusions from the D shaped solids) -

and I have moved / swapped  the stars around (as you will see by the Smart Planes). - using point select mode obviously - and using the technique of sliding boltholes around a plate (as per the other thread) 

So my (latest) question is, what happens if you tessellate those planes, given that there are so many cross-over toeholds?

PS Thanks for your posts above - I think / hope I am keeping up with you.  BUT what fascinates me is the tessellated tiles bit = there must be lines all over the place !!

PS At this point I should add that the next post is based on a wrong draft of the attachment for the dcd file below -  which has since been updated / corrected to show the crossover- stars intended - my bad - apologies 

prl

Quote from: samdavo on March 09, 2015, 01:08:57 AM
So my (latest) question is, what happens if you tessellate those planes, given that there are so many cross-over toeholds?

Not sure how you generated that image in reply #11.  Smart planes do NOT have cross-overs.  The correct smart planes are below.  Also see the movie in reply #10.


prl

Quote from: samdavo on March 09, 2015, 01:08:57 AM
BUT what fascinates me is the tessellated tiles bit = there must be lines all over the place !!

Yes, exactly correct.   What is efficient for RedSDK is a nightmare for a CNC machine, say a plunge router.  The cutting head would move up and down and back and forth a million times.

samdavo

#13
Quote from: prl on March 09, 2015, 12:13:57 AM
...  If you have version 24, you can take the solid with the smart planes and use the commands,  solid to surface followed by surface to solid  (buried under the >edit>selection edit>convert).  Rather clumsy to do and find, so I created a routine simply called, Tess.d3m that does that.  ...
thanks for that (just catching up with all your posts sorry :) - more research required on my part.

How did I do the "star-crossed lovers" in replay #11?  = I simply slid the star-shaped holes around on the plate - using pointselect mode. (2 cents).

PS Whilst this is arguably impractical and atypical,  it also flags a warning that sliding holes around like this might have reservations (?) - i.e.as you say/infer, even if you still get the right CNC/CAM result in the end, (and I have no evidence that you will) -   the cutter will be bobbing up and down like a half- starved chicken.   

prl

Quote from: samdavo on March 09, 2015, 01:29:23 AM
How did I do the "star-crossed lovers" in replay #11>  = I simply slid the star-shaped holes around on the plate - using pointselect mode.

Ah.  Well user modified smart planes may not be smart.  I have no idea what happens then.  A CNC cutter may or may not destroy your product.