How do I cast GH_MeshFace to MeshFace?

I am trying to implement a component that combines the Mesh Decompose (mComp) and Vertices (Face Vertices) behaviour but I can't cast GH_MeshFace to MeshFace in order to access the indices A, B, C and D of each face. 

 

Is there a way to do this with my or other approach?

 

Thank you.

  • up

    David Rutten

    All GH_XXXX classes have a Value property that provides access to the wrapped data.

     

    Dim mf As MeshFace = ghMeshFace.Value

     

    --

    David Rutten

    david@mcneel.com

    Poprad, Slovakia

    4