splitFaces and triFaces in AbstractPrimitive
Simple exemple
var v:View3D = new View3D( { x:400, y:300 } );
addChild(v);
var p:Plane = new Plane( { segments:1 } ); // plane with 2 faces
p.rotationX = 90;
v.scene.addChild(p)
// i resolve this very simple: var a:Number = p.min or var a:Array =
p.vertices;
//this code run protected method AbstractPrimitive.updatePrimitive and
create all faces before tri or split
// or override splitFaces and triFaces in AbstractPrimitive
// p.updateObject(); // first thing that comes to mind but it throw error
in Object3D.as:1446
p.triFaces(); // again plane with 2 faces!
p.splitFaces(); // again plane with 2 faces!
//p.quarterFaces(); // quarterFaces work ok
v.render();
Original issue reported on code.google.com by System.g...@gmail.com on 26 Sep 2009 at 9:12
Original issue reported on code.google.com by
System.g...@gmail.com
on 26 Sep 2009 at 9:12