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.

Polygons

Started by Dr PR, November 22, 2014, 02:01:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

When I read about some of illustration programs (Blender, Rhino, etc.) they talk about the number of "polygons" in a drawing, and "polygons per second" for rendering.

DesignCAD has "grid surface entities," "planes" and such.

Anyone have any idea how many "polygons" a "plane" or "grid surface entity" equates to?

Phil
DesignCAD user since 1987

Bob P

I'm pretty sure that a "polygon" is any part of a surface that is treated as a single optical entity.  That is, it's reflective/transmissive properties are uniform across its area.

prl

Maybe something like this, though not sure.

n point polygon =  n point Dc plane

Dc rectangular grid facet = 5 point polygon = (2) 4 point polygon

samdavo

#3
Phil
... and not forgetting the added complication that (as you have explained more than once), DCAD polygons need not be planar,  i.e. the planes that make up a sphere are in fact 2 triangles in different planes (2 cents).  (tri-gons?)

cheers

SManMTB

Blender uses mainly triangles and rectangles and either of those is counted as one polygon.

Since the definition of a plane is that it needs to be flat, then one rectangular 'plane' in DC equates one rectangular polygon or two triangular polygons in Blender.


That's if I understood the question.  :)

prl

#5
Quote from: SManMTB on November 22, 2014, 04:08:26 PM
one rectangular 'plane' in DC equates one rectangular polygon or two triangular polygons in Blender.

Yes, rectangular polygon is 5 points with triangular polygon having 4, in DesignCAD.  Generally all programs bog down when the poly count gets high.  Think lots of grid facets.  Not just for rendering, and standard graphics, but also for simply storing all that facet geometry.


That "DesignCAD 3D Mad Max" circular extrusion graphic and DC model is an example of a very high poly count model.  Brings most machines to a grinding halt.
A ZIP file - The 3d Mystery Object DesignCAD file.  Note it's 12mb zipped.  25mb unzipped.  A DC grid intensive drawing.  Be patient. Borrow a super computer

SManMTB

A triangle is the only entity that by default is a plane so 1 plane = 1 polygon but that's really picking the words.

Rectangular polygons are so much nicer to work with, especially in Blender and especially when defining the model.

prl

#7
Quote from: SManMTB on November 22, 2014, 04:49:02 PM
but that's really picking the words.

Phil and I love to mince words.  In a DesignCAD friendly way.  Just plane fun.

For me, a polygon is a continuous broken line shape lying in a mathematical plane.  What we do in DC 2d mode.

But computer graphics folks tend to use the word to mean filled polygon such as in a facet or Dc plane.  Many facets, Dc planes make up a surface.

Revit does something interesting with a form of anti-surface polygon.  If you have a filled polygon and draw another polygon shape within and on the outer filled polygon, it is a "hole" polygon.

line segment (defined by 2 points) - digon, (a degenerate)
triangle - (defined by 4 points) - trigon
rectangle - (defined by 5 points ) - tetragon   
... gon
... gon
... going
... gone

samdavo

#8
Quote from: SManMTB on November 22, 2014, 04:49:02 PM
Rectangular polygons are so much nicer to work with, especially in Blender and especially when defining the model.
SMan,
Could you fill in some of the gaps please.
I note that Blender is free (?)  Is that true for all levels of Blender?

Maybe you could enclose a jpeg/png of an example of what you are saying,
and also what Blender is capable of (?).
i.e.
1. In what way is Blender nice to work with? ,
and
2. Are there advantages of combining DCAD and Blender ( in the same way as combining DCAD and SketchUp?
3. PS Can you import/export between them?  in what format ( dwg?)
4. PS Rendering opportunities?
cheers
sam

I guess people who get the most out of DCAD are often in a polygamous relationship with other CAD packaages.
That's not bigamy...
I would argue that it's big of DCAD (given that it's capable of dong the heavy lifting - and only costs $100). :)

SManMTB

#9
Sam,

Blender is completely free! There are no 'levels' of the software and the capabilities are absolutely amazing. There are plenty of plugins and tutorials online in the Blender community. I am mere noob in usage but Blender is a fully professional package and can be used for very advanced animations, modeling, and rendering. Just take a look at blender.org and https://cgcookie.com/blender for example.

Blender has even been used for CFD where the OpenFOAM package has been included.

Blender works on a basic level in that you as a user has total control of all faces, vertices and points. It is not specialized towards any specific way of working. It is however not geared towards CAD / Drafting with all that comes with it.
The GUI takes a bit to get used to but it works very well.

Attachments:

First one shows one polygon in Blender. One face of the Cube has been subdivided in four and then extruded.
Second pic shows more of that.
Blender works with Meshes and NURBS and there are also several line tools available to build surfaces and solids from.

DCAD and Blender works well together. DCAD is good for doing the CAD part where the editing precision is needed and the model can then be exported to Blender to be 'massaged' and rendered.
The DCAD macro 'ExportObj' works well and I am currently using the 'obj' format to move back and forth between DCAD & Blender.
DCAD is not a parametric CAD package which is somewhat of a handicap as it takes a long time and it is also tedious to modify a 3D model. Once an operation (add/cut/combine) has been done on an object it's hard to modify. It's an old-school CAD package (and an excellent one at that) aimed at classic drafting duties with good 3D functionality added.
Neither DCAD nor Blender works with 'solids' like a parametric CAD system (like SolidWorks) since the solids are basically closed meshes built with polygons with the drawback that carries when working with curved surfaces as every surface is described as numerous flat planes connected together.

A third complement is a free OpenSource CAD program called FreeCAD which is a parametric system. It is in a very early development stage (version 0.14) but is still in a very usable state. The potential for this is impressive.
The 'parametric' way of working is clearly more efficient and faster to work. Each object is defines as a model where all previous steps are saved to the model making it possible to go back and edit dimensions. All other parts of the model automatically updates.
FreeCAD works with solids in a way you'd expect. There is no need to think about how many subdivisions are needed to present a smooth surface. The models can be exported as meshes and there are several options to set the accuracy of the exported mesh.
The 2D drafting part of FreeCAD is very rudimentary as of now and another package is needed to handle that.

A great low cost package for anyone who needs to do CAD and 3D modeling work would be this :

Blender
- Great for 'free-hand' 3D modeling and sculpting, rendering and animation. Can be used to 'massage' a CAD model and also prepare a part for 3D printing.

FreeCAD - Excellent free 3D parametric CAD package. In early dev stage but works good. Uses several different 'WorkBenches" depending on what is being worked on. Needs the support of another package to do classic drafting. The functionality is there (supports lofting, extrusion, extrude along curve and so on) but the editing functions for the drafting part is a bit clunky. The parametric work flow is fantastic and a big time saver! Worth using and keeping an eye on.
Edit : FreeCAD uses the OpenCascade libraries. It was a bit harsh to say clunky.... all functionality is there and can be accessed from phyton. It is very powerful.

DesignCAD 3D MAX - Definitely has a place here. It's a very strong package for precision drafting and 2D/3D CAD. It's old-school in the work flow but very good and easy to use with many powerful functions to design shapes.


SManMTB

#10
DCAD and Blender handles surfaces and solids in very much the same way as the objects are defined the same way - they are a set of flat planes (polygons) in a mesh where the quality is defined by the number of polygons.

DCAD has the edge over Blender for CAD work but for sculpting, free-hand modeling and rendering Blender blows DCAD out of the water just because it was designed to do specifically that. It's not even a contest but why should it be? It's like comparing Apples to Oranges (or a cup of Coffee)  :).

I haven't used SketchUp. How does it work with Solids?

The way I will be using these three packages (DCAD, FreeCAD, Blender) is probably going to be like this:

Draft the overall design in DCAD with a simplified 3D design to show the general layout taking advantage of the powerful line and surface tools together with layers (wich is a hugely useful tool).
If the design is simple enough then export it to Blender for some final massaging, sculpting and rendering (also preparation for 3D printing if that is the intent).

Use FreeCAD to do a parametric model of the design if the goal is to do many similar designs with different dimensions. Then export to Blender for final work.

Use Blender for designing organic free-hand shapes.


You might see where I am going with this. FreeCAD is the exciting newcomer here. I have never had the pleasure to work with SolidWorks due to the cost but it looks like FreeCAD can become the free alternative.
Don't kick me off the boards for talking about a competing package  :P but all I am saying is that there is no low cost option that can do everything.
Parametric CAD is totally great to work with as it saves time and effort.

This drifted slightly off topic but hope it all makes sense anyway.
8)


SManMTB

This was done in Blender:

'Tears of Steel' - a 4K movie mixing real footage with animations.
http://youtu.be/41hv2tW5Lc4

'Sintel' - more of a classic animated film.
http://youtu.be/eRsGyueVLvQ

So, DCAD and Blender are two very different programs aimed at different tasks.

Dr PR

SM,

Those movies show quite well the differences between CAD programs and illustration programs.

There is no precision in the Blender (Rhino, etc.) drawings. No dimensions, etc. To create figures you set up a framework and the program produces surfaces that are "good enough." And they are - in nature and with living organisms there are no "correct" dimensions, and just about any combination works. The entire focus is on making pretty virtual world images.

With CAD the opposite is true. Precision is essential because the designs will be used to create real world objects and the parts must fit together with tight tolerances. Shading is used just to help the designer visualize the product.

But there is an in between area where we create realistic images of CAD designs. Architectural walk throughs are an example. The jet engine in the RedSDK demo package is another. That's basically what some are trying to do with DesignCAD/SketchUp combos. Sounds like you are doing it with DesignCAD/Blender.

Phil
DesignCAD user since 1987

SManMTB

PR,
The topic is going beyond the title but, Yes that sums it up well. The point is to use the software for what it is intended to do.

What I was looking for was a CAD program that could create lofted and swept curved surfaces in a simple way as well as working with true solids at a low cost. The end game is then be able to export to a format suitable for 3D printing and milling. Parametric CAD would be great too.

There are many options for a CAD system and for sure a $4000 SolidWorks or Inventor license can do all that but that kind of money is not within reach for most hobbyists or even small companies.

The low cost version of TurboCAD for example could not do this and it's 3D capabilities are not very good unless a $1700 Pro Platinum version is used.
DesignCAD is a decent intermediate step as it can do a type of lofting and can handle curved surfaces. It is however not an ideal 3D modeling package as it doesn't actually use true solids (it's still a mesh of polygons) and the end result depends on the tessellation. Also, working with a 3D object with a fine mesh gets 'messy' really fast meaning the drawing will be hard to edit because of the many lines all over the place.

In reality I am still on the path to find a set of programs to work with and so far these three seems to work well together and they complement each other in a good way.

The Python support in Blender and FreeCAD is a hugely powerful feature. At some point there might be someone who writes a dedicated CAD plugin for Blender for accurate editing.

FreeCAD is also hugely powerful already and at a cost of free it's hard to pass up.


What was the original question again?  ??? Ahh yes, polygons. 1 DCAD rect or triangular plane = 1 Blender polygon.

samdavo

#14
SMan
wow - plenty there to research!
and thanks for your time drafting those comments.
"your bloods's worth bottling" as they say.

I am only aware of the massive synergy between DCAD and SketchUp, whereby DCAD exports dwg, - and SKU imports it (but I suspect you need the $500 version to be able to import dwg).   Sadly DCAD cannot export in sketchup format (suffix sku from memory).

Examples :-
SKU can even import from GoogleEarth  - prl found this completed SKU drawing of the Sydney Opera House,  SOH, including GoogleEarth of the local landscape.  I will quickly add that he went on to do a far more accurate version of the shells using DCAD, and I added the actual and more structurally realistic radiating ribs (as I understand them to be) - again DCAD.

Plenty of examples of drawing in DCAD then exporting to SKU on this forum, but here's one I did with a trial version (i.e. just the importing and rendering in SKU).  It shows some of the tricks that are involved, or rather errors that can creep in for the novice.  eg  Some planes are greyed out - eg the sphere - and AIUI as I understand it, that is because those particular "planes/warped  planes"  are inside out.

Also, there is a red plane across one of the holes in the final result (whatever it is called, a universal olive?)  - probably due to z-fighting.
Both of these errors can be corrected once you know what you are doing.   (but as I say $500 for the Sketchup version that can import something drawn in DCAD, albeit via dwg format. )
cheers