Skip to content

Commit

Permalink
Now TurtleMeshes automatically convert to Grasshopper meshes, and are…
Browse files Browse the repository at this point in the history
… triangulated using the face vertex average when needed.
  • Loading branch information
piac committed Jul 20, 2013
1 parent 42accdd commit 6167a30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TurtleGh/GH_TurtleMesh.cs
Expand Up @@ -311,6 +311,11 @@ public override bool CastTo<Q>(out Q target)
target = (Q)(object)RhinoMeshSupport.ExportTriangolatedRhinoMesh(m_value);
return true;
}
if (typeof(Q) == (typeof(GH_Mesh)))
{
target = (Q)(object)new GH_Mesh(RhinoMeshSupport.ExportTriangolatedRhinoMesh(m_value));
return true;
}
if (typeof(Q) == typeof(ITurtleMesh))
{
target = (Q)(object)m_value;
Expand Down

0 comments on commit 6167a30

Please sign in to comment.