Make2D Generate fills

Hey everyone
Any idea on how something like this could be accomplished with Make2d? Perhaps via Grasshopper?

https://docs.blender.org/manual/en/2.79/render/freestyle/export_svg.html

Did a quick test with hatches generated in Grasshopper using Elefront. I baked manually.

Here’s the SVG on a A4 page:

test_layers

All edges on one layer. Hatches on three layers, the part which is behind is on a layer with a higher index.

Imported SVG with surfaces flipped:

svg.gh (21.8 KB)
svg.3dm (68.5 KB)

2 Likes

Hi Martin,

That´s just some great work! I thank you for the help.

I´m searching for an .SVG or a .PDF export, basically I´m looking for a good 2d vector output from Rhino. So far the best I´ve found is SketchUp´s. Yesterday I stumbled upon with the blender variant, and it was when I posted my question, but then remembered SketchUp´s. If you take a look at the .GIF I´m sending as an attachment you´ll see that SketchUp not also generates a fill upon export but it is shaded, and should I add, very clean, as you can see when I interact with it in Illustrator. Although the wire coming from Rhino is better, the fill is not. Actually, the only way to get the shaded faces out of Rhino is by exporting the .SVG as a raster.

Any idea on how to achieve SketchUp´s results?

Thanks so much for the previous effort!

Animation

I have your question many years ago since Rhino 5.

I found out that sketchup is the best choice.

1 Like

Haven’t tried, but I think to get the shaded look you could create an additional hatch for a selection of faces in Grasshopper.

I agree. I thought that too and I think it´s probably going to be a critical step in the definition, but I think it is even more important to figure out how to flat colour the faces in relation to the position of the light in the scene. I think I have a pair of components in mind for that task, but I´ve never used them :frowning:

Maybe the most simple way to do this is indeed with Sketchup. In that case I would streamline the export from Rhino to Sketchup to keep the editing in Sketchup to a minimum.

As a former architect, I abandon Sketchup long time ago and used Rhino since I graduated.
But gotta say, Sketchup did some great work on things like this.

I’ve been using it extensively long time ago and still need it but mainly to export climbing walls and accessories so clients can look at their projects for free in a simple 3D editor.

Sketchup was an amazing product when it came out fifteen years ago, and I suppose it still is. The Pro version’s layout tool and global terrain integration were outstanding. I was amazed at the web browser version (free) I tried a couple years ago after Trimble bought it:

I can´t see SVG or PDF as formats to export in the options. I tried with printing as PDF, but got a raster result. There´s no way to get 2d vectors out of the free browser based SketchUp version. It is possible though in the Pro version. That´s why I wanted to stay in Rhino… to not relay on another package and the licence that comes with it! There might be a way through blender… but anyway I´d always try to stay in Rhino. Lets see what comes out!

Rhino will output SVGs only from the “wireframe” view. Outputting from any other view type will generate a blank, and even non-rendered curve vectors will not be present. Rhino will output other view types as PDFs, but even when you select “vector” output the PDF is actually just a raster image.

You can export the wireframe SVG and open it in a vector editor (I use inkscape) and manually fill the shapes. Unlike .dwg or .dxf export, this allows you to export a particular view as vectors, like a Make2d but in a way that preserves the original geometry. Two downsides:

  1. every face you want to be fillable has to be an individual closed polygon/plane, which isn’t the case for extruded shapes.

  2. SVG does not export layers. Maybe AI does?

Solid hatches are exported to SVG. When imported into Rhino again, the hatches can be imported as
surfaces. Same goes for AI.

Here’s a random ellipse filled with a solid hatch and exported on A4

hatch

1 Like

thank you, I was able to do this. The drawback is that the hatch command requires individually selecting and applying hatches to each individual 2-D surface. Which for me would take too much time to be worth it. If there were some way of selecting multiple surfaces in different planes and simultaneously applying hatches at once, that would be useful…

Can be done like this in Grasshopper:

1 Like

cool. will try. thanks.

1 Like