Grasshopper

algorithmic modeling for Rhino

Hello people

help with these components ... can't figure out how they create meshes (inputs / outputs) 

thank you 

Views: 1347

Replies to This Discussion

A mesh face is a list of 4 integers. If the last two integers are identical, the face represents a triangle, if they are different, the face represents a quad.

The numbers refer to vertex indices. Say you have a mesh with 100 vertices (points). The first one is at index 0, the second one at index 1, then 2, 3 etc. all the way to 99. A face might connect vertices 0, 1, 22 and 23.

You typically don't use this kind of low level method to create a mesh, though of course there's nothing stopping you. Most meshes are either the result of some operation on existing meshes, the approximate mesh of a surface/brep or based on one of the mesh primitives such as Plane, Box or Sphere.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service