Grasshopper

algorithmic modeling for Rhino

Matching the number of tangent vectors and vertices for reconstruction of a mesh

Hello,

I am currently working on creating tangent lines for a given mesh object to use that as the "instruction" for how that mesh gets created (to eventually allow the game engine to reconstruct that mesh given that instruction), but I am struggling with how I can match the amount/number of vertices in a given mesh and the number of tangent vectors on that mesh so that it can properly get translated and reconstructed in a game engine. Using the "deconstruct mesh" component and my own python script, I was able to extract the information from face value outputs of "deconstruct mesh" component to create the tangent lines, but the amount of "vertices" shown from the "deconstruct mesh" output does not match with the number of tangent vectors. I was considering that the potential correction I need to make is discarding the vector if the particular edge already has a tangent vector on it. However, discarding those "repeats" you still have total number of independent tangent vectors being (number of vertices)+1, which I do not thing is a good sign. Could I receive some help? I may be in a completely wrong direction on this idea. 

Thank you! 

Views: 280

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service