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.

Using section tool makes surface into grid bits

Started by MarkX, February 15, 2013, 11:07:13 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

MarkX

I wanted to see if the hammer could be used for anything.

So, after creating my piece of "chicken wire" between two lines, I rotated my "plane" (grid actually) and then proceeded to trim it to match the target shape using "D".

Unfortunately, the trimming action apparently broke the grid up into grid fragments unsuitable for the hammer.

So...

1. Should the trim tool be breaking grids into grid pieces?

2. Is there some better way to cut a grid surface?

3. Is there any way to "glue" grid pieces back together to form a contiguous grid?

4. Has anyone, anywhere ever done anything useful with the hammer?

Thanks,
Mark

minstrel

#1
Quote from: MarkX on February 15, 2013, 11:07:13 AM
Has anyone, anywhere ever done anything useful with the hammer?

Hi Mark,
Well, I spent over 40yrs swingin' a hammer....and made some pretty useful things, I reckon ;D

[Excuse me,  I'm just a bit 'jovial' at the moment.  Just finished a full re-install of my system and everything went smoothly]

Now, let's get serious.

I had a go with Dcad's 'Hammer' some time back...so I'll need to re-visit it before I can offer any good news.
Yet I do remember it only affects surfaces created with surface connect or surface patch [this is how you got the chicken wire, yes?] ...if that's any help.  It's spelled out in the manual/online help.

Minstrel

MarkX

Quote from: minstrel on February 15, 2013, 11:26:13 AM
Quote from: MarkX on February 15, 2013, 11:07:13 AM
Has anyone, anywhere ever done anything useful with the hammer?
Yet I do remember it only affects surfaces created with surface connect or surface patch [this is how you got the chicken wire, yes?] ...if that's any help.  It's spelled out in the manual/online help.
I started by making chicken wire. Then I needed to trim it to shape. The trimming broke it into pieces. So I haven't actually gotten far enough to use the hammer.

Mark

Dempsey

#3
MarkX,

In my early days (V16.x ???) I created a pillow for a bed starting with a surface grid and then hammered it in a few spots. Nothing fancy.

Rather than trimming can't you use the hammer to "trim" it into the shape you want?
Dempsey

MarkX

Quote from: Dempsey on February 15, 2013, 12:10:12 PM
MarkX,

In my early days (V16.x ???) I created a pillow for a bed starting with a surface grid and then hammered it in a few spots. Nothing fancy.

Rather than trimming can't you use the hammer to "trim" it into the shape you want?
There's no bend tool in DC, so there's no way to form those nice corners. I guess I could have started by making the grids and then turning the grid sheet 90 degrees.  But shouldn't trim work with grids?

Thanks,
Mark

DrollTroll

The problem is, a Grid must have the same number of points on each grid line -- n rows by m columns. So you can't trim off a corner, for example, and still have the result all be one grid. I'd like, someday, to have another non-grid surface type that consists of any number of contiguous facets in any old arrangement that doesn't have the same restraints as a grid. But today we don't have such a beast. You may be able to use Point Select Mode and move individual vertices of the grid to arrive at the shape you want.
25 years with DesignCAD

MarkX

Quote from: DrollTroll on February 15, 2013, 01:19:07 PM
The problem is, a Grid must have the same number of points on each grid line -- n rows by m columns. So you can't trim off a corner, for example, and still have the result all be one grid. I'd like, someday, to have another non-grid surface type that consists of any number of contiguous facets in any old arrangement that doesn't have the same restraints as a grid. But today we don't have such a beast. You may be able to use Point Select Mode and move individual vertices of the grid to arrive at the shape you want.
So ... if you extrude a plane into a cube and then explode, what you have is a a couple planes and a grid.

But if you slice that cube at an angle, and then explode ... there are no grids. DC must have converted that grid into a plane before cutting. Odd.

Thanks,
Mark

prl

Quote from: MarkX on February 15, 2013, 02:28:52 PM
But if you slice that cube at an angle, and then explode ... there are no grids. DC must have converted that grid into a plane before cutting. Odd.

I think you have your sequence wrong.  When you slice the cube with the internal grid, DesignCAD looks to build the solid to the geometry you've specified.  But since it can't use the grid approach to form the solid (because the grid line point count will not match across the solid), it uses the simpler planar facets approach.

Dr PR

Mark,

I have actually used the Hammer tool to do something useful. The "bloomers" around the gun barrels in this picture were hammered into shape:

http://www.okieboat.com/Copyright%20images/Turret%202%201024%20C.jpg

You can use the Hammer to create non-symmetrical folds in a surface. It takes quite a bit of practice to get anything but a mess. One of these days I will go back and add more folds and make each bag different from the other two.

****

You can move points in a grid in Point Select mode. Each rectangular facet is actually two triangles - DesignCAD hides the hypotenuses. So when you mangle a grid with the Hammer you don't get aplanar polygon facets - they bend along the hypotenuses. DesignCAD makes the triangular pieces invisible by rendering  a smooth curved surface. It actually does a pretty good job. But if you curve a surface too much the program will treat the facet edges as sharp "knuckles."

****

If you cut a grid in any way it breaks up into individual facets. When this happens file size increases dramatically. Where the surface is highly curved the grid breaks up into individual triangles. In less curved areas the grid breaks up into rectangles.

****

There is no easy way to stitch grids back together again. You can select all of the facets and use "Solid Define" to combine them, but it is still a large collection of small surfaces. File size will not be reduced. However, it will render as a smooth surface.

****

You can define a grid to be a solid with "Solid Define." Then you can subtract another solid from it to "drill" a hole in the grid. When you do this the grid explodes into individual facets. Then you can use the broken grid as a pattern to create new template lines for "Surface Connect." with this trick you can reconstruct the grid around the hole and then delete all the individual facets.

I posted a way to create grids with holes in them here:

http://forum.designcad.com/index.php?topic=3814.msg21232#msg21232

It is a lot of work. However. the virtue of this method is that the file size will be much smaller, so ti will load and render faster.

Phil
DesignCAD user since 1987

JJG

Quote from: Dr PR on February 15, 2013, 08:44:43 PM
... You can select all of the facets and use "Solid Define" to combine them, but it is still a large collection of small surfaces. File size will not be reduced. However, it will render as a smooth surface.
...
I would make a small apparte :

I'm not so sure that the simple act of "solid-define" some contiguous plans together (ie facets) will allow to obtain smooth surfaces, in all type of cases.
Indeed, it has happened sometimes to me to import some dwg- or dxf-drawings, in which it was impossible to obtain smooth surfaces, while I had solid-defined them.
Finally, I do not have other way that to redraw completly the solid in question, so that it deigns to behave as a smooth-surface (right-click is very useful and efficient in such case).

Dr PR

JJG,

The angle between the planes of polygons is important for smooth surfaces. With slight angles DesignCAD will smooth over the edge and render as a smooth surface. But when the angle increases beyond a threshold the program renders the polygons as separate surfaces with a "kink" or "knuckle" where they join.

Another way to cause a sharp edge between adjacent polygons is to draw double points - two points in the same position. This will always cause a sharp crease between adjacent polygons. You can cause this to happen in grids by placing double points in the template curves for the "Surface Connect" function. If an imported file has double points in a grid they will cause sharp edges in an otherwise smooth grid surface.

Phil
DesignCAD user since 1987

JJG

Quote from: Dr PR on February 16, 2013, 07:16:32 PM
JJG,

The angle between the planes of polygons is important for smooth surfaces. With slight angles DesignCAD will smooth over the edge and render as a smooth surface. But when the angle increases beyond a threshold the program renders the polygons as separate surfaces with a "kink" or "knuckle" where they join.

Another way to cause a sharp edge between adjacent polygons is to draw double points - two points in the same position. This will always cause a sharp crease between adjacent polygons. You can cause this to happen in grids by placing double points in the template curves for the "Surface Connect" function. If an imported file has double points in a grid they will cause sharp edges in an otherwise smooth grid surface.

Phil

Phil, thank you for your reply. I know this already.
But in the case of import, the problem is not only a question of angle between the planes of polygons, or double points : otherwise, rebuilding the solids in question (with DesignCAD native commands, the result would have been the same.
For true smooth surfaces, there is something more.

prl

#12
JJG, and others

You know this already but it is worth repeating.  When you import something using DXF/DWG, planar regions (facets) are highly triangulated because of the way AutoCAD defines their planar regions (faces).

Once you have the imported 3d object in DesignCAD, if you can isolate the collection of facets that form the volume closed entity representing a solid, you can "Solid Define" it followed by the subtract-a-dummy-cube trick. Recall this trick is where you draw a dummy cube (say 1x1x1) somewhere off to the side in your drawing and you subtract it from your "Solid Define" solid.  DesignCAD will greatly clean up all those triangulated facets into the more typical DesignCAD planar facet(s) (a single line polygon).  What it, however, doesn't do is rebuild the solid to include the even more optimized form of a DesignCAD solid that uses grids.

I guess the reason I mention this is if your original "Solid Define" solid is just the collection of original triangulated faces without the clean-up, who knows which way all the surfaces normals are facing.  If they are mixed, this will greatly affect the way DesignCAD renders the object.


Lar

Mark,

I have tried the 'Hammer' command in dcad and other 3D programs (including cinema4d) and nowhere does it work for me. Which is why I developed methods of generating a series of lines that change subtly from one to the other and then 'surface connecting'. With dcad's commands I can get maximum control over the final surface. I can then export to c4d.

C4D does 'solids' the way Troll spoke of in his post. There you can have a single 'solid' entity consisting of connected and/or un-connected surfaces (imagine a word in 3d being a single 'solid'... heck, imagine a sentence or a whole paragraph being a single 'solid'). They achieve this by first recording the point locations, then specifying which points (usually 3 but can be 4) are used for individual surface facets (hint to DT, if he needs one). You can actually delete a surface without deleting its points. You would think this would slow down operations but oh no. C4d's dynamic bools are so fast you tend to waste time just playing with them (ie, trying to see if my hand speed is quicker than c4d can calculate as one solid passes through another... Happily, it isn't).

Lar



JJG

Prl and Phil,

in the cases I'm talking about, I do not find either of triangle ...

Below an example extracted from a dxf-file sent to me by an architect, to show and understand what I mean :
(the original dxf-drawing itself looks like to me quite "suspect", insofar profiles to generate the solid are very irregular, and I can not also believe that they were generated by a "mathematical" command)
It remains that the drawing rebuilt in DesignCAD presents smooth surfaces that operate (ie "are working") in Gouraud shading, while the original not.