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.

Colours of planes exported from DCAD to Sketchup

Started by samdavo, August 29, 2015, 07:44:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

This CSG (constructive solid geometry) example has been used in previous threads.   I thought I would redraw it, and try again to export it direct to Sketchup.
For some reason the colours of many faces don't export.  (Perhaps this is intentional by DCAD ?) i.e. One thing I quite like about DCAD is that solids can have multiple colours eg when you SOLIDSUBTRACT green tubes from a blue sphere, the new solid (in DCAD) has both blue and green faces (and some red as well).

However when you export to Sketchup from DCAD V25, the entire final solid is now blue. (2 cents)

(More research required and ongoing).

PS One good thing, I don't see any planes that require rotation / reversal of the normal (?) as happened last time when exported from V22.   Having said that Sketchup has a command that permits planes of a solid to be reversed.  And nothing improves when I reverse those blue-planes-that-should-be-red-or-green.

samdavo

#1
PS This is what it should WOULD look like in Sketchup (edit) IF multicoloured solids were exported as such - but I had to colour this one manually in SKP(2 cents)

DrollTroll

When you export to SketchUp, DesignCAD temporarily converts all "classic" solids to Solid Surfaces. An unfortunate limitation of Solid Surface entities is that they don't support per-facet coloring --- the entire object has to be the same color. That's why you're getting what you're getting.
25 years with DesignCAD

samdavo

#3
thanks DT
I suspected that might be the case - no biggie.
 
First jpeg = imported planes only
If one really wants those coloured planes, one (or two for that matter lol) can simply explode the solid into planes before exporting.  (see first jpeg).  (But you can't view with "profiles highlighted" unless you want a stack of black lines).

Second jpeg = ditto.
This is the same SKP file seen in sketchup when the view is changed to monochrome.   Note that this has two colours (white and bluish), because some of the faces are reversed.  Note that I am unsure what effect this has on 3D printing (since I haven't tried that skill yet).  But I suspect it would print better if all faces were white (?)

Third and fourth jpegs = solids (other than the spheres - for subsequent discussion).
So I experimented  V25 > SKP:-
I drew some hemispheres, cylinders and boxes as solids in DCAD, and 'exported them to SKP.  For the  green set, I "extruded" / set the third point upwards, for the blue set I "extruded" down.  Note that when exported to SKP, and viewed in "monochrome", the white and bluish faces are opposite in each case.   Incidentally, the top face of all those shapes is white - just as the bottom face is blue, as you can see  (2 cents)

PS.  FWIW and IAIRI  (for what it's worth and if anyone is really interested lol) I am using Sketchup Make (free version)

samdavo

#4
Here I add some spheres - refer second jpeg below - again white or bluish.
a) the top one is as drawn in DCAD.  When exported to SKP (and seen in "monochrome"), it appears white. 
b) the second is exploded (solid > grid only), and this grid was reversed in Infobox (red and blue arrows).  It appears bluish.
c) Just as a further experiment, the third is exploded all the way to planes (solid > grid > planes) and these are reversed in the same way.  These are collected into a group.  It also appears bluish, i.e. nothing gained compared to the second one.   In fact, when "profiles visible" is chosen ( a SKP option), it is inferior to the second one, because of all the thick black lines. (2 cents)   

But basically, reversed planes can be carried out in DCAD before exporting to SKP.  (IF it matters ??)
Also, (alternatively), at the end of the day, there is a way to reverse planes in SKP, so you can also change "plane-normals" there.

Incidentally, when you import into SKP, it often tells you that there are errors. (first jpeg)

samdavo

#5
Finally, herewith two sets of solids in SKP, tidied up using the plane reversal feature there.   One set are white all over, the other is bluish all over.  Whilst I understand that this could have been done in DCAD, it is maybe / arguably  (?) an advantage to do it in SKP, because you can identify the two colours , white and bluish. (2 cents)

PS I am not aware of how important this is, but (as I say above), I am ASSUMING it is relevant for 3D printing (?)   Anyone know if this is indeed the case ?

samdavo

Back to those solids that have some planes with clockwise points as seen from outside (bluish in SKP) and some anti-clockwise (white in SKP), I tried converting them to surfaces in DCAD first, solid > surface, i.e. before exporting to SKP, and nothing changes (on first impression).  They are still bluish and white resp when opened in SKP (with "monochrome" view).

PS Incidentally, the only way to check the direction of a plane in DCAD that I am aware of (maybe there are others?) is to explode the solid to planes, then isolate one of those planes (or copy it), then vc  vector convert it,  then change the coordinates of point 1 (eg the x coordinate box in Infobox).  One point will move, and this will identify both point 1 and point 2, hence clockwise or anticlockwise as seen from that view direction (2 cents)   

DrollTroll

That's something that has loosely been discussed at times. We might potentially do something like this (see image); however, it probably won't help in all cases -- like if you have selection handles 1 and 2 also sitting on top of points 1 and 2 -- in that case the selection handles might mask the colored points. But it's an idea to start with, at least. Ultimately I'd like to have a normals editor where you can just see the direction the facet/grid/plane normals are facing, and flip the ones that are backward.
25 years with DesignCAD

samdavo


samdavo

PS Does anyone know if this plane reversal is relevant to 3D printing?

DrollTroll

Yes it is. Fortunately, almost all 3D printing software comes with tools that can analyze the object and repair any wrong-facing facets.
25 years with DesignCAD

samdavo

#11
Howdy again - OK ,  I tried the old trick of subtracting a small 3D box (not contiguous) from each of those solids, and  ... viola ( or violin whatever), I get white all over when exported to SKP.    Successfully changed to all plane-normals in "same direction" (outward or inward).
(refer the right hand half of the jpeg).  :)

There is even a sphere there (bluish) where I manually reversed the direction.   And again, subtracting a small box returns it to an all-white sphere :) 

PS Summary - this trick is (apparently) another way to repair wrong-facing facets.
PS I decided to try this idea after looking at the second jpeg in reply #3, where solid subtraction resulted in an all-white solid (2 cents)