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.

Help Wanted (To debug some export issues)

Started by prl, November 23, 2014, 01:58:38 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

prl

#15
Dean, you may be missing the point.  That single plane with interior openings in the original DC drawing in reply #2 is a correct winding order plane.  No extra lines or anything in it.  It is a single line DesignCAD smart plane.  (One line defines that entire plane). If you vector convert that plane, select it, use the infobox, you'll see, one line.  Now the line does have switch-backs, lines on top of each other as the winding order retraces itself to get to the next internal opening.  Those are legal.

All the tricks you're doing in SketchUP to get rid of the skinned over faces and extra edges is because DesignCAD isn't generating a proper dwg/dxf.  And I can do the tricks in SU too, but why should I.  DC CAN do it sometimes.  I want it all the time.  As shown, at most 3d positions, DesignCAD exports things correctly.  At a few important positions, it generates garbage.  So DC knows how to do it right, but hasn't covered all the bases, hence a DC coding error somewhere.  Remember, it is the very same entity copied and positioned differently.   

What you folks are doing for me is providing me with theme and variation results.  Hopefully I'll see a pattern which will point me in the area where DC is deficient.  Somewhere between what we see on the screen in DC and what I see on the screen in SketchUP, DesignCAD is messing up the data transfer.




minstrel

Quote from: prl on November 23, 2014, 10:28:22 AM
Somewhere between what we see on the screen in DC and what I see on the screen in SketchUP, DesignCAD is messing up the data transfer.

Here, no doubt, lies the 'breeding ground for errors'.  You might remember that recent DCAD versions [in betas] corrupted all DXF/DWG exports except for those exported via R12.   

R12 is my current setting for all DCAD dwg/dxf exports...period.

prl

Quote from: minstrel on November 23, 2014, 11:47:49 AM
R12 is my current setting for all DCAD dwg/dxf exports...period.

I remember that.  I'm going to test that drawing I made in reply #2 using DesignCAD version 13 (which will export all the way back to AutoCAD 2.5, ha ha).

Dean

The R12 didn't fix anything for me,
But in DC the slightest bit of rotation on those two planes (with the skinned facets) appears to correct the dwg export errors (capture2)
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

#19
Quote from: Dean on November 23, 2014, 12:37:56 PM
But in DC the slightest bit of rotation on those two planes (with the skinned facets) appears to correct the dwg export errors (capture2)

Yes.  In programming terms, what we are seeing could be a 1st quadrant angle coding error, example :

If something >= 0 and something < 90 then do this
If something >= 0 and something <= 90 then do this

A logic error or typo. That "equal" symbol in the program at 90 degrees is important. 

Dean

DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

minstrel

#21
Quote from: Dean on November 23, 2014, 12:37:56 PM
The R12 didn't fix anything for me,

Sorry Dean, didn't mean to imply it did.  It's just the most trustworthy dwg/dxf export setting.

Nice find with the rotational cleanup 'nudges' but, how would you handle this one? [see attachment]
It's another one of prl's challanges for the masses.

This one does not have those closed openings [z-fights] but, does have reversed faces. This is what I think lies at the heart of prl's quest - namely, a 'flawless' dwg/dxf exported from DCAD.


prl

Quote from: minstrel on November 23, 2014, 10:12:57 PM
the heart of prl's quest - namely, a 'flawless' dwg/dxf exported from DCAD.

Referring to the graphic in reply #21.  What fascinated me about that exercise is the exported solid is somewhere around 700 or 800 hundred surfaces.  And only about 20 or so are incorrectly displayed, meaning winding order is backwards.  For the blue faces, the surface point data is correct but sent in the wrong order.

So for that model, DesignCAD did it right 97% of the time.  That's wild and gave/gives me hope.

magic

Hi prl,

Quote from: prl on November 24, 2014, 01:49:23 AM700 or 800 hundred surfaces

Do you mean 700 or 800 or do you mean 70,000 or 80,000?
It's a kind of magic!




prl

Quote from: magic on November 24, 2014, 02:30:35 AM
Do you mean 700 or 800 or do you mean 70,000 or 80,000?

In that particular case I was doing the demo live, and the su24x routine destroys the memory drawing after it is done so I didn't catch the actual number.

I just re-did a similar live session but stopped the su24x routine and queried for the number of tessellated planes, and for the below graphic, you're looking at 623.

Dr PR

prl,

Sorry I haven't contributed anything to your quest, but I am pretty busy right now and don't have much free time.

But, I was thinking about what Dean posted - about rotation clearing up the problem.

What if you rotate all of the objects (select everything and rotate everything at the same time) in a drawing +X, +Y and +Z,  and then rotate everything back -X, -Y and -Z? Does this eliminate the problem facets in the export file?

Phil
DesignCAD user since 1987

prl

#26
Quote from: Dr PR on November 24, 2014, 08:39:55 AM
What if you rotate all of the objects (select everything and rotate everything at the same time) in a drawing +X, +Y and +Z,  and then rotate everything back -X, -Y and -Z? Does this eliminate the problem facets in the export file?

I think if I do the back and forth rotations and end up before the DesignCAD export code, I'll still have problems.  But your suggestion is interesting.  Nudge rotate by some know angle  the drawing in DesignCAD to get it off of the 0 and 90 degree marks, export, then import into SketchUP and have SketchUP nudge it back to where it should be.

Thanks,  I'll add that to my list of "try this".

Do any of you Big Iron lurkers reading this from the sidelines still have working ANSI C compilers?  I have some C tessellation code and I would like to test on a DOS command line (before I go to the effort of using it/porting it to something more accessible by DesignCAD). It's been decades since I needed to deal with Make files.

http://www.cs.cmu.edu/~quake/triangle.research.html

wrong link, this one http://www.cs.cmu.edu/~quake/triangle.html

prl

#27
A riddle inside a riddle inside a joke wrapped in case statements with possible domain limit typos.

So I'm sure (or so I thought) that DesignCAD is basing its exports on some sort of 1st quadrant math limits but yet decide to experiment and create an alternate prl smartplane winding order.  In the attached model, everything is dead-on  0 and 90 degree axes.  No nudging.  I export that model, and everything is perfect in SketchUP.  Huh? A second time, I prerotate in DesignCAD and I start seeing skinned over surfaces, not all but some. 

So if you use the attached model, a straight dxf/dwg export should give you a correct model in your receiving application.  Let me know if not.

Oh yes folks in the USA.  Gobble gobble!

minstrel

#28
Quote from: prl on November 25, 2014, 03:52:21 AM
Gobble gobble!

..to you, too!


Prl-fect!  Guess you got it!  Congrats!

edit - using SketchUp/Twilight Renderer combo, of course.

prl

#29
Quote from: minstrel on November 25, 2014, 04:30:09 AM
Prl-fect!  Guess you got it!

Thanks Minstrel.  The winding order quirk is throwing another set of undefined conditions my way.

Trying to debug DesignCAD is like that arcade game, Whac-A-Mole and having just thought about this metaphor simile , all while in the funny house with all the mirrors.  A mental, physical, and visual challenge.