public void DrawBoxLines(Matrix viewMatrix, Matrix projectionMatrix, GraphicsDevice device, BasicEffect basicEffect) { //Console.WriteLine("box num:" + buildingBoundingBoxes.Count()); foreach (BoundingBox box in buildingBoundingBoxes) { XNAUtils.DrawBoundingBox(box, device, basicEffect, Matrix.Identity, viewMatrix, projectionMatrix); } }
public void DrawBoxLines(Matrix viewMatrix, Matrix projectionMatrix, GraphicsDevice device, BasicEffect basicEffect) { foreach (OcTreeNode childNode in childList) { childNode.DrawBoxLines(viewMatrix, projectionMatrix, device, basicEffect); } if (modelList.Count > 0) { XNAUtils.DrawBoundingBox(nodeBoundingBox, device, basicEffect, Matrix.Identity, viewMatrix, projectionMatrix); } }