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.

Create grid

Started by Dr PR, January 09, 2010, 01:17:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I would like to see a new command to create a grid object from a collection of small adjacent polygons, all lumped together in a larger more or less rectangular array.

For example, suppose you create a grid entity and then explode it. Then remove entire columns or rows around the edge. Now select the remaining array of rectangles and use the "Create Grid" function to reconstruct a new grid entity from them.

A true grid forms a surface and is a much smaller (about 1/4 the bytes) object than an equivalent array of rectangles. Files with grids are not as large, load faster and render faster than an equivalent array of polygons.

DesignCAD user since 1987

Adrian 2.0

I second that request.
A true grid will also draw the surface intersect with another surface in one operation instead of having to select each polygon individually.

This tool would also allow me to 'repair' grids (temporarily made into solids) that I have performed a solid subtract on.
Currently this not only explodes the entire remaining grid, but divides every 'rectangle' into 2 triangles - why does it do that?
Should that be posted as a bug?

JJG

#2
Dr PR,

I do not good understand what you are calling "grid" ? is it a "surface" (in France, we call that "grillage", that means "wire netting"), or ?
beacuse I know only vectors entities, plans entities, and solids entities. So, your polygons are plans, I presume.

The disadvantage of "surface" ("grillage", or in english "wire netting"), is that Boolean operations are not working with ...

But that's right, when you need to do Boolean operation with, nothing prevents you from use the command "Solid define" before.
So I second that request too.

Dr PR

JJG,

In DesignCAD a "grid" is a specific type of entity, like a line, curve, plane, etc. It is a surface with zero thickness. An object with this property is impossible in the real world, but is no problem in the virtual world inside the computer.

If you draw a curve and then extrude it, the resulting entity will be a "grid." It is composed of polygons with parallel sides in the direction of the extrusion. The polygons are four sided parallelograms or trapezoids.

If you create a cylinder with the "Draw a cylinder "tool" and then explode it (Edit/Selection Edit/Convert/Explode) the result will be two flat end polygons and a cylindrical grid between the two ends.

Curved surfaces that are generated by DesignCAD are grids. The surfaces produced by "Surface Patch" and "Surface Connect" are grids.

An advantage of grids is that all of the individual polygons are part of a whole, as if they were a group or a solid. However, the big advantage is that a grid is a much smaller object (smaller file size, faster rendering, etc.) than a similar collection of individual polygons. Four rectangles with a common corner have 16 corners. Four similar polygons in a grid have only nine corners. The grid is a "shorthand" way to represent a lot of polygons with a smaller (fewer bytes) entity.

Grids have a subtle feature that you need to be aware of. The individual polygons often are not planar. DesignCAD "cheats" on Euclid with the polygons, often bending them slightly to make the grid wrap around a complex surface. The polygons look like ordinary parallelograms or trapezoids, but all four corners may not be in the same plane.

If you explode a grid (Edit/Selection Edit/Convert/Explode) it disintegrates into a lot of unassociated polygons. This increases the file size because each individual polygon has four unique corners.

****

As adriank said, you can define a grid to be a solid (Solid/Solid Define) and then use it with the solid Boolean operations. For example, to "drill" a hole in a grid:

1. Make it a solid

2. Create another "tool" solid with the proper hole cross-section

3. Position the tool solid where you want the hole in the surface

4. Use "Solid/Solid Subtract" to subtract the tool from the grid.

This has the unfortunate side effect of shattering the grid, producing huge amounts of garbage, and causing the file size to increase.
DesignCAD user since 1987

Dr PR

adriank,

I posted a feature request dealing with how "Solid Subtract" fractures a grid into a mess of triangles. I think it is a bug, DT thinks it is a feature.
DesignCAD user since 1987

JJG

#5
OK Dr PR,

I just download a Designcad V19.1, and install it, to see the exact words used, and so not more reply "approximately".
Indeed, grid is what is call "grillage" is the french version of Designcad, and I do well  know what is it exactly.

And on my both version of designcad (now V 19.1 and Designcad Pro7000), when i expode a grid, it become not "polygon", but planes ; next step, I do not think there is the possibility of "exploding" a plan : the only issue is to covert it to vectors.

Adrian 2.0

Dr,
It has to be a bug. Not only is the result a huge drain on memory, but it won't render as a smooth surface, tracing intersects is a nightmare.
Does DT also think termites are a feature?

Dr PR

adriank,

After exploding a grid you can select all the pieces and define them to be a solid. In most cases this caused the surface to render smoothly again. Really sharp curves may not render smoothly, but that is already the case with grids. Of course the file size is a lot larger and the rendering is a bit slower.

Jim (SciGraphics) and Lar just posted a note saying that there is a switch in the DC_Startup.ini file called RecoverGrids that may be the problem. I will experiment and post the results.
DesignCAD user since 1987

Lar

Just be aware 'Recover Grids' can only reconstruct those parts of the original Grid that can be made into legitimate Grids, meaning the number of planes per line is the same throughout. Most likely the facets around a drilled hole, for example, can't be reconstructed and will have to remain planes.

There were times, after a Boolean operation, I had to recreate one of the Grid surfaces and then snap some of points onto other points so as to 'eliminate' a facet, so that it can shade smoothly. I was always afraid it would crash dcad but it never did.

Lar

Adrian 2.0

Lar,
How did you perform the 'recover grids'?
I see the switch in the .ini file (on). Despite the limitations of 'loose' facets around trimmed holes, this is still a quantum improvement on the way I struggle through now. Currently I use 'section cutoff' to isolate the approximate region I want to cut a hole in - this makes a very poor jagged hole with a number of intact grids surrounding it, then have to draw a new grid to patch the hole, and do a solid subtract on that.

Lar

adriank, if recover grids is on in your ini file then your dcad is doing it now and that's as good as it's gonna get. I never really tested it by turning it on and off. I think it was on by default and I never turned it off. I first found out about it in the early days of the upperspace forum when I posted asking if anybody knew what it was meant by 'RecoverGids and a number of other ambiguously named items in the ini files. I think it was Troll who answered explaining the terms. When Dr PR complained about fragmented grids in another current post I asked him to check see if his was on or off, mentioning that it might help.

Dr PR

Lar,

What you describe with RecoverGrids=ON is exactly what I am looking for. It would be wonderful if it would reconstruct the true grid parts and leave the remaining polygons for me to play with.

I am pretty sure it worked that way in V15.3 (haven't tested it lately). I remember creating a complex grid and then punching a hole in it with "Solid Subtract" and most of the grid remained intact, with a few loose bits around the hole. Then, not too long after that I tried it again and the entire grid exploded into a mess. I think this may have started with V17. Since then I have spent weeks (literally) redrawing fractured grids one parallelogram at a time. Sometimes it takes more than a full working day to clean up the mess from a single "Solid Subtract" on a large surface.

Like adriank I have been wasting a lot of time working around this bug. "Section Cutoff" doesn't always work on grids that stretch over highly curved surfaces - the grid lines are not straight in any plane. Sometimes I use the fractured grid as a template and draw new curves along the grid lines, then I regenerate that part of the grid from the lines. Unfortunately, on highly curved surfaces the collection of grids does not always render smoothly like the original - the seams stand out as sharp "knuckles" (a nautical term for sharp edges in an otherwise unbroken surface). Defining the grids to be a solid sometimes helps, but not if the angle between adjacent grids is more than a few degrees. It can take days to create the correct combination of grid pieces around a hole!
DesignCAD user since 1987

Adrian 2.0

I've been playing instead of working, now I have more questions.
I created a test curved grid & cut an elliptical hole (1.jpg) - the result is 217 entities, 1349 points.
Then I did the process I described above (2.jpg)
step 1
I took the same curved grid, hacked a hole with section cutoff, this gave me 11 individual grids & a bunch of planes.
step 2
I made a solid out of ONLY the bunch of planes, and subtracted my elipse. The result is 52 entities, 377 points.
NONE of the planes that were solid subtracted were bisected, even though they are exactly the same entities as were trimmed in the first example.

I also tried turning off recovergrids (figured it may have been that which restored the 11 disconnected grids) but it made absolutely no difference.
Questions.
Why does section cutoff / trim make such a hopeless job of cutting grids?
Why does solid subtract bisect all the rectangular surfaces when they don't need to be?
Note that if you combine all the 11 remaining grids into a solid before subtracting, it bisects the individual facets on EVERY grid in the solid, even though you are not trimming any of them.

Lar

I suspect the basis of all this is that dcad was always the only 3d program that could have a Plane surface with more than 3 or 4 points. Other 3d program had to triangulate surfaces since with 3 points the surface is always a true plane, no matter how you move any individual point. The other programs just did a good job of hiding the interior lines. This may also be why orbiting the view in dcad is much slower than other programs.

I think the genius behind dcad's multi-point planes may have been lost or abandoned and so moving forward triangulation will become a normal part of dcad.

Just my discernment of the situation.

Lar

Dr PR

adriank,

I didn't follow everything you said.

What is the wireframe rectangle in your pictures?

Are the colored grids the result of cutting up a large grid into multiple pieces with "Section Cutoff?" Why are there so many? I understand that the gray part is the solid you subtracted from.

It is interesting that when you subtracted from the gray solid the resulting facets weren't split into triangles. Was this done with RecoverGrids=0 or RecoverGrids=1?
DesignCAD user since 1987