   Plane & Mesh faces problem (Xna)
  Hello everybody;Is there any way to get each face of our mesh?(e.g: wall.FBX)I want find out wall normal (or direction).I have a way for do that but its not working can anyone help me this is my way:I can get my mesh's corners now i can create 6 panel of each face of my mesh by this method:Plane p1 = new Plane(this.Corners[0], this.Corners[1], this.Corners[2]);Plane p2 = new Plane(this.Corners[......My problem is when i want draw normal of my plane its not working correctly by this method:Vector3 StartPoint=Model.Meshes[0].BoundingSphere.Transform(model.Root.Transform).Center;Vector3 EndPoint=p1.Normal;VertexPositionColor[] VP=new VertexPositionColor[2]VP[0].Color=VP[1].Color=Color.Red;VP[0].Position=StartPoint;VP[1].Position=EndPoint;VertexDeclaration vertexDeclaration = new VertexDeclaration(Device, VertexPositionColor.VertexElements);BasicEffect BE = new BasicEffect(Device, null);BE.VertexColorEnabled = true;BE.World = model.Root.Transform;BE.View = Camera.View;BE.Projection = Camera.Projection;Device.VertexDeclaration = vertexDeclaration;BE.Begin();foreach (EffectPass pass in BE.CurrentTechnique.Passes){pass.Begin();Device.DrawUserPrimitives<VertexPositionColor>(PrimitiveType.LineStrip, VP, 0, 1);pass.End();}BE.End();this confused me i want to know each face(Plane) of my wall and its normal to create sliding along wall.Any hopefully help??For pre-information see this post:http://www.gamedev.net/community/forums/topic.asp?topic_id=573478(This is not Duplicated post)Thanks[Edited by - Saeed Masoumi on June 10, 2010 3:53:56 PM]