NGon support


#1

Hi @dale,

It may be a bit early to ask about ngon related features but, i noticed that i can draw clean ngons using the _3dFace command and that Rhino imports obj files containing ngons properly by displaying ngons. This is great ! eg. this dodecahedron:

v 0 0.618034 1.61803
v 0 -0.618034 1.61803
v 0 -0.618034 -1.61803
v 0 0.618034 -1.61803
v 1.61803 0 0.618034
v -1.61803 0 0.618034
v -1.61803 0 -0.618034
v 1.61803 0 -0.618034
v 0.618034 1.61803 0
v -0.618034 1.61803 0
v -0.618034 -1.61803 0
v 0.618034 -1.61803 0
v 1 1 1
v -1 1 1
v -1 -1 1
v 1 -1 1
v 1 -1 -1
v 1 1 -1
v -1 1 -1
v -1 -1 -1
# 20 vertices

f 1 2 16 5 13
f 1 13 9 10 14
f 1 14 6 15 2
f 2 15 11 12 16
f 3 4 18 8 17
f 3 17 12 11 20
f 3 20 7 19 4
f 19 10 9 18 4
f 16 12 17 8 5
f 5 8 18 9 13
f 14 10 19 7 6
f 6 7 20 11 15
# 12 faces

However if i run _ShowRenderMesh or try to read the face vertices in RhinoScript using Rhino.MeshFaceVertices, i do see the triangles still. Will there be new or changed methods in RhinoScript to work with real ngon data ? I mean especially these methods:

Rhino.MeshFaceVertices
Rhino.MeshFaceCenters
Rhino.MeshFaceCount
Rhino.MeshFaceNormals
Rhino.MeshVertexFaces

c.


(Dale Fugier) #2

I doubt we will see new RhinoScript methods. But the existing ones will be tuned up for support n-gons.


#3

Thanks, this is going to be fun once Rhino.AddMesh can be used to create Ngons. btw. in V6, could you add mesh output to your polyhedra plugin too ?

c.


(Dale Fugier) #4

Yes I can. You probably won’t see V6 versions of RhinoPolyhedra until the new SDK is frozen.