Forgot password?

Create an account!

Forum

« back

RhinoScript – AddMesh triangle behaviour

Messages

Please log in to write a message.

  • 1. lmbgm (Mar 16, 2010 23.17):

    I need to create triangle meshes with three vertices and not four.

    If I do this:

    arrVert(0)=Array(0,0,0)
    arrVert(1)=Array(1,2,3)
    arrVert(2)=Array(4,5,6)
    arrFace(0)=Array(0,1,2,2)
    AddMesh arrVert,arrFace

    I get a triangle mesh with four vertices.

    If I change to:
    arrFace(0)=Array(0,1,2)

    I do get a triangle mesh with three vertices, but the normal always points up in the Z direction. If I then select all and rebuild meshes, the problem is fixed.

    Is there a way to fix this?

Recommend

Why are these buttons gray?