|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoxi.geom.PointCloud
public class PointCloud

| Constructor Summary | |
|---|---|
PointCloud()
|
|
PointCloud(int numPoints)
|
|
| Method Summary | |
|---|---|
PointCloud |
addAll(java.util.List<? extends Vec3D> plist)
|
PointCloud |
addPoint(Vec3D p)
|
PointCloud |
applyMatrix(Matrix4x4 m)
Applies the given transformation matrix to all points in the cloud. |
PointCloud |
center()
Updates all points in the cloud so that their new centroid is at the origin. |
PointCloud |
center(ReadonlyVec3D origin)
Updates all points in the cloud so that their new centroid is at the given point. |
PointCloud |
clear()
Removes all points from the cloud and resets the bounds and centroid. |
PointCloud |
copy()
Creates a deep copy of the cloud |
AABB |
getBoundingBox()
|
Sphere |
getBoundingSphere()
|
Vec3D |
getCentroid()
|
java.util.Iterator<Vec3D> |
iterator()
|
boolean |
removePoint(ReadonlyVec3D p)
Removes the point from the cloud, but doesn't update the bounds automatically. |
int |
size()
|
PointCloud |
updateBounds()
Recalculates the bounding box, bounding sphere and centroid of the cloud. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointCloud()
public PointCloud(int numPoints)
| Method Detail |
|---|
public PointCloud addAll(java.util.List<? extends Vec3D> plist)
public PointCloud addPoint(Vec3D p)
public PointCloud applyMatrix(Matrix4x4 m)
m - transformation matrix
public PointCloud center()
public PointCloud center(ReadonlyVec3D origin)
origin - new centroid
public PointCloud clear()
public PointCloud copy()
public AABB getBoundingBox()
public Sphere getBoundingSphere()
public Vec3D getCentroid()
public java.util.Iterator<Vec3D> iterator()
iterator in interface java.lang.Iterable<Vec3D>Iterable.iterator()public boolean removePoint(ReadonlyVec3D p)
p -
public int size()
public PointCloud updateBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||