kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

splitFaces and triFaces in AbstractPrimitive #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This code now works against latest trunk for Fp9 & 10. closing issue.

Original comment by jens...@gmail.com on 15 Jul 2010 at 11:11