Fence/Wire Mesh Design in Grasshopper

Hi there,

I’m still learning grasshopper, taking it day by day.

As of current, i’m looking for a way to replicate the fence wire pattern on grasshopper (reference image provided), which i can then apply on surfaces or extrusions. Any sort of help to start with will be much appreciated. Thank You!

This post is really helpful for asking the good question, therefore learn fast with less pain.

Help Us Help You - Grasshopper - McNeel Forum

Is there a reason that you would not use a texture map with alpha for this? Real geometry will be very resource intensive.

An STL file contains only geometry—specifically, a list of triangles that define the surface of the object. It contains no information about:

  • Colors
  • Texture maps
  • UV coordinates
  • Materials
  • Bump maps
  • Normal maps
  • Displacement maps

So if you take a smooth cylinder in Rhino, apply a wood grain texture to it, and export it as STL, the STL will still be a perfectly smooth cylinder.

The important distinction

There are two ways a texture can affect a model:

1. Visual texture (texture map)

  • JPEG, PNG, HDRI, etc.
  • Makes the object look rough.
  • No actual geometry changes.
  • Does not export to STL.

2. Geometric texture (displacement)

  • The software actually pushes vertices in and out.
  • The mesh becomes physically bumpy.
  • This does export to STL, because the bumps are now real triangles.

In Rhino

Suppose you have a carved oak texture.

If you simply assign the texture in the material editor:


Material
    ↓
Wood.jpg

…it only affects rendering.

If instead you use something like:

  • Heightfield
  • Displacement
  • Mesh Displacement
  • ApplyDisplacement (depending on workflow)

the mesh is physically altered.

Then when you export the STL, every little ridge becomes triangles.


I would recommend researching some weaving algorithms

to adapt to your case.

Also i would keep it as a curve or a mesh with one face, so it stays lightweight

Yea, this was my concern as to why i couldn’t use a texture map.