Getting size of node

"Cep21" wrote:
You have to load it as a BoundingBox "bound","box"

Sorry, I don't understand what you mean by that.

This is how I get my Node:

MilkToJme converter = new MilkToJme();
ByteArrayOutputStream BO = new ByteArrayOutputStream();
JmeBinaryReader jbr = new JmeBinaryReader();

try {
   converter.setProperty("bound","box");
   converter.convert(model.openStream(),BO);
   node = jbr.loadBinaryFormat(
         new ByteArrayInputStream(BO.toByteArray()));
} catch (IOException e) {
   System.out.println("Vessel could not be loaded:" + e.getMessage());
}

You set the property when it’s loaded. The properties are in the javadoc for both those functions.



IE:



jbr.setProperty(“bound”,“box”)

That worked, thanks!