Stephen 11 years ago
parent 54c6aa5afc
commit 05c171e07e
  1. 11
      jme3-core/src/main/java/com/jme3/scene/debug/WireBox.java

@ -102,13 +102,21 @@ public class WireBox extends Mesh {
updateBound(); updateBound();
} }
/**
* Old method retained for compatibility: use makeGeometry instead.
*/
@Deprecated
public void fromBoundingBox(BoundingBox bbox) {
updatePositions(bbox.getXExtent(), bbox.getYExtent(), bbox.getZExtent());
}
/** /**
* Create a geometry suitable for visualizing the specified bounding box. * Create a geometry suitable for visualizing the specified bounding box.
* *
* @param bbox the bounding box (not null) * @param bbox the bounding box (not null)
* @return a new Geometry instance in world space * @return a new Geometry instance in world space
*/ */
public static Geometry fromBoundingBox(BoundingBox bbox) { public static Geometry makeGeometry(BoundingBox bbox) {
float xExtent = bbox.getXExtent(); float xExtent = bbox.getXExtent();
float yExtent = bbox.getYExtent(); float yExtent = bbox.getYExtent();
float zExtent = bbox.getZExtent(); float zExtent = bbox.getZExtent();
@ -120,5 +128,4 @@ public class WireBox extends Mesh {
return result; return result;
} }
} }
Loading…
Cancel
Save