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.

surface connct and surface patch

Started by samdavo, April 29, 2013, 02:13:55 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

finally after export to dwg and import into Sketchup.
cheers

samdavo

#16
So I have discovered a few things by this exercise - so I'll mention these for starters.
And intersperse it with some questions.

Firstly I like the way there's a couple of shades of colour on the top of the saddle.

And if you look at the Sketchup version ( last post), you'll note that there are triangles, and "warped rectangles".  And guess what, these are exactly where the colour changes in the DCAD version.  i.e. white triangles, and grey "rectangles".

How did I make that shape?  I subtracted a "gold" cylinder ( totally in layer 3, all gold colour) ,
from a "white" cylinder (totally in layer 1, all white); each with a curved top surface.

So I explode the saddle shape, and delete everything in "gold layer 3", then I'm left with the top surface of the saddle - still with white and grey.

Then I delete everything in "white layer 1",  and guess what, I am left with the "grey layer 0".
Now, lol I NEVER Use layer 0.

so how did I get that grey layer 0 pattern?
and how do I get it again, because I quite like it? lol.

PS you will see that the layers are made up of elements as follows :-
Layer 1 = generally (white) triangular elements of the saddle surface ( although the perimeter ones are warped "rectangles") 
Layer 0 = (grey) "rectangular" elements, and
Layer 3 = (gold) "rectangular" elements.

Next question.  How is it that the original hyperbolic thing ( the gold saddle underneath) is totally rectangular elements;
and yet the top of the saddle (a mongrel shape due to my approximate pringle thicknesses) is a mixture of rectangles and triangles?
(edit - maybe that question, posed that way, answers itself lol)

Next comment.  When you snap to a plane, I believe you actually snap to a grid (hope that's right).  Hence when two curved surfaces like this are close together, compared to the size of the elements, then I assume it is hypothetically possible to snap to the layer underneath, because a grid point was maybe closer than the closer surface.

Next comment.  Hence I believe there is a case for separating layers and "saddle curves" in this case,  (again using the diabox for reference handles for bringing it together again) - and getting a good look at the curved surface you are working with (2 cents) 

prl

#17
Quote from: samdavo on May 02, 2013, 03:29:16 AM
How is it that the original hyperbolic thing ( the gold saddle underneath) is totally rectangular elements;

OK, many questions and I don't have all the answers.  However, in DesignCAD and only DesignCAD not all surface rectangles shown as such are a plane.  DesignCAD uses a trick where it simulates two surface triangles that aren't in a plane using a rectangle surface.  The diagonal edge between the triangles within the four points has the edge hidden. My theory goes that way back in the DOS days when memory was tight, this was a DesignCAD trick for warping areas and saving on memory.  In essence, they built in a rendering "smoothing" function for warped rectangular shapes.

In SketchUP though, a rectangular surface is a plane if shown that way.   Otherwise the default definition of a planar surfaces is 3 points, and we know that always works.

Edit: And Phil can expound on the effects of exploding a DesignCAD "surface".  It will "reveal" all the triangular surfaces and the hidden diagonals.

samdavo

prl
thanks for that.
I'd love to have a beer with you sometime lol - and that goes for most of you super-knowledgeable "hero members" -

all I can say is that you are well named :)

and PS. I find your/LAR's macro called pl2??.d3m to be a really good addition to the toolbox.
Strangely, I believe it works for a line perpendicular to a plane from a point in that plane -
which is what I am trying to do with those pine trees. 

But I enclose a jpeg - the title says it all - cheers

More on that "under separate post"

samdavo

Sorry I should have posted this "wireframe"
No question that there are both rectangular and triangular elements in there.
Maybe Phil can add some "magic words"

samdavo

#20
and herewith the dcd file behind all that (I have just constructed the elements again - and they give the same result - i.e the grey areas in layer 0 magically appear again)...

PS "3mm higher" should read "top surface 3mm thicker than previous"

PPS And in conclusion (for tonight anyway - since it's midnight) I find it very interesting that a solid can consist of a number of surfaces, all in different layers  :)

and since Spanish seems to be the flavour of the month
adios amigos and ... ???  amigos femenina, lol ( sorry didn't have time to persevere with google translate - but suspect the word I'm after is amigas  :)  )

JJG

Quote from: samdavo on May 02, 2013, 05:50:09 AM
and since Spanish seems to be the flavour of the month
adios amigos and ... ???  ...  :)  )

If it's about the Barca that you want to speak, so I think that it's MarkX who is happy ... !

samdavo

JJG I attach the only Barca I know :)
(to be honest Freddy Mercury was an easy avatar, but I'd prefer Don Quixote  - I don't know how to load up alternatives as www. website.  Any tips there would be appreciated)

Also just playing around with other options for that saddle,  colours-wise;  and I find that they all give that grey layer 0 pattern.

Couple of other tips,  if you look at that drawing you will see that things are neatly laid out (could be better obviously but for me that's not too bad) - and I owe it to the easy manipulation with diabox4,d3m.

For instance, it is dead easy to change the grey layer 0 to lilac layer 6, and paste it back onto the saddle surface - in fact I show the lilac shape in the original white cylinder-plus-curved-top.  But I had to cheat by raising it 1mm , otherwise I didn't know how to make it visible (bring to front) compared to the white original surface.

Compare wanting to do some tricky work on the mower in the garage, you take the carby to a clean workbench right? - well that's what diabox4 permits you to do - then bring it back using the many available handles.

Next tip of sorts.  It is a good idea to exploit the fact that solids can have multiple layers ( and colours - I always use 1 = white, 2 = red, there days 3 = brown because yellow doesn't print , 4 = green, 5 = cyan, 6 = magenta). That way when you want to manipulate one surface, you select that layer etc.   By the way, ever tried deleting a curved surface element by element, carefully selecting them because there are other exploded elements just behind them in a layer you don't want to touch,  sheesh.

samdavo

#23
here's the dcd btw.
So , hidden in that ramble are questions lol
How to set up an avatar?

Is it possible to make one coloured surface (eg magenta) have priority over another (eg white) when they are effectively the same surface? - i.e. how to make magenta show without the cheat of raising it 1mm as I did.

If you explode a solid, how do you manipulate individual elements other than the tedious way, or without having planned ahead and having them in different layers?  Maybe there's another way - so that when you explode the solid they don't go straight to elements, but instead go to component surfaces?  (which could even be in the same layers).

Coming full circle, I'd like to compare the shape achieved with Surface Connect  to the one with Surface Patch - to see if the elements differ - manyana.

samdavo

meant to add this one as well. (later version).  apologies.  It includes pasting magenta back on whit cylinder.

Dr PR

Sam,

1. If you mess with a grid by defining it to be a solid (Solid Define) and then using a solid Boolean to change it - such as subtracting another solid from it, DesignCAD almost always moves some of the facets to layer 0 (BUG). Almost. I did have one drawing where bits and pieces of a grid ended up on a higher numbered layer, but that happened only once that I am aware of.

The parts on layer 0 are still parts of the grid. If you select the grid and open the Info Box you can move all the parts back to the desired layer.

2. When grid facets are moved to layer 0 they are changed to the "Aluminum" material (BUG). This shades as gray.

Again, while you have the grid selected and the Info Box open you can change all of the facets back to the desired material - just use the selection finger to snap to a part of the grid that is the correct material.

3. When a grid is "edited" as described above many or all of the facets will be split into two triangles. This will cause the file size to increase dramatically! Instead of one grid object you get many triangular objects.

Actually, ALL rectangular grid facets are made up of two triangles. DesignCAD normally hides the hypotenuse so the two triangles look like a rectangle.

Draw a plane that passes through a grid and then use the "Surface Intersection" finction to create a line at the intersection of the plane and the grid. Then switch to Point Select mode (CTRL 1) and select the line. Note all of the extra points on the line that are not along the edges of a rectangular facet. These points are where the line crosses the hypotenuses of the two triangles that make up the facet.

****

These bugs have been around for many versions (V16?) and have been reported many times. Maybe someday they will get fixed.

I never use layer 0 for anything. If it is marked non-empty (asterisk) in the Layers Dialog I know that a solid Boolean operation has screwed up.

Phil
DesignCAD user since 1987

samdavo

#26
Thanks so much for that explanation Phil.
Yep I noticed - 
There's a difference between the red cylinder (based on a hyperbolic thingo); 

and the white cylinder (which I am calling a mongrel grid - but sounds like it had something to do with Solid Define (?).

Anyway, if you explode the red cylinder, you get a grid for the saddle shape;
if you explode the white one, you get a stack of small planes - triangular or warped rectangle elements.  Hence I found myself trying to delete these one by one. - painful.

(edit - strange that those warped rectangles are called "planes" in Infobox.  I'll have to try that check you mention with intersection lines)

Hence yet again, many of my conclusions are suspect  -  but for all that I would still use two colours to make such a shape, for easy further investigation :)   

In the enclosed jpeg and dcd, I go on the literally explode push apart the exploded solids - using dempsey's pushapart.d3m macro.  (thanks again Dempsey - gold that one).

  It dramatically shows those individual elements for the mongrel   adulterated (white) saddle -

but the majority of the grid for the "pure" unadulterated red saddle is still bound together as a grid  - Even then the perimeter of the red saddle has some individual elements ( 2 cents).  (obviously a boundary condition feature)

(PS if anyone's interested I pushed apart after "solid explode" - and used the centre C as origin of the "starburst", and a factor of 150%.  And you 'll find a link to that macro on thread " Tips and Tricks / Re: Cheapskate bolts".)

To be clear though, it sounds like I should not have used "Solid Define" on a grid before the Boolean "Solid Intersect"??

prl

Quote from: samdavo on May 02, 2013, 02:40:06 PM
(to be honest Freddy Mercury was an easy avatar, but I'd prefer Don Quixote  - I don't know how to load up alternatives as www. website.  Any tips there would be appreciated)

I don't know how others are doing it but I use one of those free Dropbox accounts.  Essentially a web based file hosting site. You can upload project files and/or graphics to Dropbox and then get a link for them. 

In your DesignCAD personal profile settings, paste the link in the "the avatar by URL" section. 




samdavo

Thanks again prl.

Another thing about grids - I find that you can change them from medium coarse (which I will define as the default) to coarser , or indeed, finer. 

I imagine (??) coarser would help minimise file size, and finer would help for things like drawing lines perpendicular to a surface.   (more of that later - because I suspect that the pl2l.d3m macro works fine PROVIDED you use a fine grid - 2 cents)

I enclose a blowup of the grid of the red saddle shape as medium (original), then coarse (one third as many "grid points" and "grid lines"), then fine (3 times as many lines).

And the good news is that you can save it as coarse - and change it back to fine later.   

samdavo

#29
Firstly, I'll mention that I believe it is very difficult to accurately draw a line normal to a surface with high curvature.
Referring back to the early posts, which enclosed hyperbolic parabaloids drawn with both surface connect, and also with surface patch.
FOR THIS CASE, surface patch is clearly a smoother surface. - and the better option.

As for drawing normal to the surface from within the surface, ...
In some respects the ice-cream cone method mentioned above is better than pl2l.d3m , because it permits you to choose the best fit.

Clearly the size of the grid (smaller the better) will greatly increase the accuracy of pl2l.

The other thing is that the surface connect appears to have a serious discontinuity at the central plane of symmetry (near the top of the saddle) .  And this is not just about resolution/fineness of the grid - If you look at the last enclosure, the profile of the surface connect is quite "V-shaped" compared to the surface patch ( more "U-shaped")