Here I have this function to work recursively
public static function setBothSides(object:ObjectContainer3D, bl:Boolean =
true):void
{
for each (var item:Object3D in object.children) {
if (item is Mesh) {
Mesh(item).bothsides = bl;
}
if (item is ObjectContainer3D) {
setBothSides(ObjectContainer3D(item), bl);
}
}
}
Guilherme Camargo Cardoso
On Tue, Jul 21, 2009 at 09:20, ben <[email protected]> wrote:
>
> "you're a legend", I don't know if you're making reference to my old
> porn carrier...
>
> they're is a back property to the mesh:
>
> Mesh(tempRef).bothsides = true;
> Mesh(tempRef).back = yourMaterial as ITriangleMaterial;// your
> material must be a
>
> and to the faces:
>
>
> for each (var fc:Face in Mesh(tempRef).faces)
> {
> fc.back = yourMaterial as ITriangleMaterial
> }