26th September 2004, 04:19 PM | #1 |
Senior Member
Professional user
Join Date: Nov 2003
Location: Eugene OR, USA
Posts: 212
|
Adding a vertex to a surface??
k, im making a plugin, that works with adding vertexs to surfaces...
but i cant figure out how exactly to do this. do i recreate the whole Surfaces List( List *Currect_Surf_List )? or do i recreate each surfaces Vertex List? or is there some ac_command that just adds one... or somthing else? thanx --phil |
27th September 2004, 05:41 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
You'll need to:
create vertices and add each one to the surface AND the object There are various functions to create/set a vertex: Code:
Prototype Vertex *new_vertex(void); Prototype Vertex *new_vertex_set(float x, float y, float z); Prototype Vertex *vertex_clone(Vertex *p); Prototype void vertex_set_point(Vertex *v, Point3 *p); To add the vertex to a surface: Code:
Prototype SVertex *surface_add_vertex(Surface *s, Vertex *p, float tx, float ty); The vertex must also be added to the object which holds the surface. Code:
Prototype void object_add_vertex(ACObject *ob, Vertex *p); Andy |
28th September 2004, 07:43 PM | #3 |
Senior Member
Professional user
Join Date: Nov 2003
Location: Eugene OR, USA
Posts: 212
|
ahhh add it to the object as well.
who would have thUnk of that. thanx. ill try it as soon as my computer finishs defraging. |
|
|