/** Calculate the {@link BoundingBox} of the specified part. * @param out the bounding box to store the result in. * @param offset the start index of the part. * @param count the amount of indices the part contains. * @return the value specified by out. */ public BoundingBox calculateBoundingBox (final BoundingBox out, int offset, int count) { return extendBoundingBox(out.inf(), offset, count); }
/** Calculate the bounding box of this model instance. This is a potential slow operation, it is advised to cache the result. * @param out the {@link BoundingBox} that will be set with the bounds. * @return the out parameter for chaining */ public BoundingBox calculateBoundingBox (final BoundingBox out) { out.inf(); return extendBoundingBox(out); }
/** Sets the bounding box minimum and maximum vector from the given points. * * @param points The points. * @return This bounding box for chaining. */ public BoundingBox set (List<Vector3> points) { this.inf(); for (Vector3 l_point : points) this.ext(l_point); return this; }
/** Calculate the {@link BoundingBox} of the specified part. * @param out the bounding box to store the result in. * @param offset the start index of the part. * @param count the amount of indices the part contains. * @return the value specified by out. */ public BoundingBox calculateBoundingBox (final BoundingBox out, int offset, int count, final Matrix4 transform) { return extendBoundingBox(out.inf(), offset, count, transform); }
/** Sets the bounding box minimum and maximum vector from the given points. * * @param points The points. * @return This bounding box for chaining. */ public BoundingBox set (List<Vector3> points) { this.inf(); for (Vector3 l_point : points) this.ext(l_point); return this; }
/** Calculate the bounding box of this model instance. This is a potential slow operation, it is advised to cache the result. * @param out the {@link BoundingBox} that will be set with the bounds. * @return the out parameter for chaining */ public BoundingBox calculateBoundingBox (final BoundingBox out) { out.inf(); return extendBoundingBox(out); }
/** Calculate the {@link BoundingBox} of the specified part. * @param out the bounding box to store the result in. * @param offset the start index of the part. * @param count the amount of indices the part contains. * @return the value specified by out. */ public BoundingBox calculateBoundingBox (final BoundingBox out, int offset, int count, final Matrix4 transform) { return extendBoundingBox(out.inf(), offset, count, transform); }
/** Calculate the bounding box of this model instance. This is a potential slow operation, it is advised to cache the result. * @param out the {@link BoundingBox} that will be set with the bounds. * @return the out parameter for chaining */ public BoundingBox calculateBoundingBox (final BoundingBox out) { out.inf(); return extendBoundingBox(out); }
/** Sets the bounding box minimum and maximum vector from the given points. * * @param points The points. * @return This bounding box for chaining. */ public BoundingBox set (Vector3[] points) { this.inf(); for (Vector3 l_point : points) this.ext(l_point); return this; }
/** Calculate the bounding box of this Node. This is a potential slow operation, it is advised to cache the result. */ public BoundingBox calculateBoundingBox (final BoundingBox out) { out.inf(); return extendBoundingBox(out); }
/** Calculate the bounding box of this Node. This is a potential slow operation, it is advised to cache the result. */ public BoundingBox calculateBoundingBox (final BoundingBox out) { out.inf(); return extendBoundingBox(out); }
/** Calculate the bounding box of this Node. This is a potential slow operation, it is advised to cache the result. */ public BoundingBox calculateBoundingBox (final BoundingBox out, boolean transform) { out.inf(); return extendBoundingBox(out, transform); }
/** Calculate the bounding box of this Node. This is a potential slow operation, it is advised to cache the result. */ public BoundingBox calculateBoundingBox (final BoundingBox out, boolean transform) { out.inf(); return extendBoundingBox(out, transform); }
/** Calculate the {@link BoundingBox} of the specified part. * @param out the bounding box to store the result in. * @param offset the start index of the part. * @param count the amount of indices the part contains. * @return the value specified by out. */ public BoundingBox calculateBoundingBox (final BoundingBox out, int offset, int count) { return extendBoundingBox(out.inf(), offset, count); }
/** @return the merged bounding box of all controllers. */ public BoundingBox getBoundingBox () { if (bounds == null) bounds = new BoundingBox(); BoundingBox bounds = this.bounds; bounds.inf(); for (ParticleController emitter : controllers) bounds.ext(emitter.getBoundingBox()); return bounds; }
/** Returns the bounding box for all active particles. z axis will always be zero. */ public BoundingBox getBoundingBox () { if (bounds == null) bounds = new BoundingBox(); BoundingBox bounds = this.bounds; bounds.inf(); for (ParticleEmitter emitter : this.emitters) bounds.ext(emitter.getBoundingBox()); return bounds; }
/** Returns the bounding box for all active particles. z axis will always be zero. */ public BoundingBox getBoundingBox () { if (bounds == null) bounds = new BoundingBox(); BoundingBox bounds = this.bounds; bounds.inf(); for (ParticleEmitter emitter : this.emitters) bounds.ext(emitter.getBoundingBox()); return bounds; }
/** @return the merged bounding box of all controllers. */ public BoundingBox getBoundingBox () { if (bounds == null) bounds = new BoundingBox(); BoundingBox bounds = this.bounds; bounds.inf(); for (ParticleController emitter : controllers) bounds.ext(emitter.getBoundingBox()); return bounds; }
private void endpart () { if (part != null) { bounds.getCenter(part.center); bounds.getDimensions(part.halfExtents).scl(0.5f); part.radius = part.halfExtents.len(); bounds.inf(); part.offset = istart; part.size = indices.size - istart; istart = indices.size; part = null; } }
private void endpart () { if (part != null) { bounds.getCenter(part.center); bounds.getDimensions(part.halfExtents).scl(0.5f); part.radius = part.halfExtents.len(); bounds.inf(); part.offset = istart; part.size = indices.size - istart; istart = indices.size; part = null; } }