Creating new meshes, that I can use FaceHelper with?

Software: Away3D 4.x

empend, Member
Posted: 14 January 2012 01:31 AM   Total Posts: 77

When I try to create a mesh that I can use to add faces, I get some errors…

I’m just using this to create a mesh that has subGeometry that I can use with the faceHelper class.

var mesh:Mesh = new Mesh(defaultMaterial, new Geometry());
mesh.geometry.addSubGeometry(new SubGeometry()); 

This is the error I get just from those lines.

TypeErrorError #1009: Cannot access a property or method of a null object reference.
 
at away3d.bounds::BoundingVolumeBase/fromGeometry()
 
at away3d.entities::Mesh/updateBounds()
 
at away3d.entities::Entity/get bounds()
 
at away3d.core.partition::EntityNode/isInFrustum()
 
at away3d.core.traverse::EntityCollector/enterNode()
 
at away3d.core.partition::MeshNode/acceptTraverser()
 
at away3d.core.partition::NodeBase/acceptTraverser()
 
at away3d.core.partition::Partition3D/traverse()
 
at away3d.containers::Scene3D/traversePartitions()
 
at away3d.containers::View3D/render()
 
at Main/update() 

I guess my question is; how can I setup a mesh, so I can use the FaceHelper on to add faces myself?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X