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.
TypeError: Error #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?