marvingreenberg / FaceSVG

SVG Export from Sketchup 3D modeling tool
MIT License
49 stars 3 forks source link

FaceSVG layout flipped horizontally #28

Open esotericist opened 5 years ago

esotericist commented 5 years ago

When using FaceSVG 2.2.2 in Sketchup Make 2017, the resultant layout appears to be flipped horizontally: image

This holds true in the resultant SVG; it's not just an issue in the sketchup view: image

(fill/stroke edited since the goal is for a laser cutter)

marvingreenberg commented 5 years ago

From your image, it looks like you're drawing just a plane, not a solid model. The orientation of the generated SVG depends on understanding what direction is "out" from the solid based on the plane's normal vector.

If you don't have a 3d solid SketchUp makes the normal vector somewhat arbitrarily. The generated SVG is just the outline viewed from the bottom.

If you just "pull" your image into a 3d solid by a small amount and select the top face, you should get your expected result

esotericist commented 5 years ago

I had intended to eventually make use of 3d for checking fit and whatnot, but it made sense to do workflow testing with a simple 2d object first.

This failstate makes a lot of sense in retrospect, even though it isn't an intuitive thing to expect in advance. Perhaps the documentation could be adjusted to include a warning about this possibility?