add edge by script fails

Date : Wed, 12 Dec 2007 19:58:25 -0500
To : XSI(at)Softimage.COM
From : "Ponthieux, Joey" <j.ponthieux(at)nasa.gov>
Subject : add edge by script fails
I sent this at 3pm this aternoon, but it never showed up on the list. Sorry if it posts twice.Very odd.


In JScript I create a cube, then call Poly.Mesh>Add Edge tool, then create a edge across one facet of the cube starting at a vertex, then somewhere in the facet then another vertex. When I am finished the edge is created and the following is what is created in the script editor history log.


CreatePrim("Cube", "MeshSurface", null, null);
ApplyTopoOp("AddEdge", "cube.pnt[2];cube.edge[-1];cube.poly[4]", null, null, null);
AddPointInteriorToPolygon("cube.polymsh.addedgeop", 0, 0, 1, 2, 0.301210900245083, 0.366440890303661, 0.332348209451256, null);
TerminateAddEdgeWithInteriorPoints("cube.polymsh.addedgeop", 4, 11, null);


If I copy this to script editor dialog box and run it, it fails starting at the ApplyTopoOp. I've not edited anything this is verbatim what was produced by the log.



However this works:

CreatePrim("Cube", "MeshSurface", null, null);
AddEdge("cube.pnt[2];cube.edge[LAST];", 45.7073555139773, siPersistentOperation, null, null);




and so does this:

CreatePrim("Cube", "MeshSurface", null, null);
SplitEdge("cube.edge[1]", 51.7771523174187, false, true, siPersistentOperation, null);
AddEdge("cube.pnt[LAST];cube.edge[11];", 39.4032756141395, siPersistentOperation, null, null);



It appears any single edge created from edge to edge, edge to vertex, vertex to vertex will work. But any multiple edge creation with an extra vertex in the new edge run fails as a script. Anybody seen this before? Any idea how to get around this?


--
Joey Ponthieux
NCI Information Systems Inc.
NASA Langley Research Center
____________________________________________________________
Opinions stated here-in are strictly those of the author and
do not represent the opinions of NASA or any other party.

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.