本文整理汇总了Java中javax.media.j3d.Shape3D.removeGeometry方法的典型用法代码示例。如果您正苦于以下问题:Java Shape3D.removeGeometry方法的具体用法?Java Shape3D.removeGeometry怎么用?Java Shape3D.removeGeometry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.media.j3d.Shape3D
的用法示例。
在下文中一共展示了Shape3D.removeGeometry方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateRoomPartGeometry
import javax.media.j3d.Shape3D; //导入方法依赖的package包/类
private void updateRoomPartGeometry(int roomPart, HomeTexture texture)
{
Shape3D roomShape = (Shape3D) getChild(roomPart);
int currentGeometriesCount = roomShape.numGeometries();
Room room = (Room) getUserData();
if (room.getLevel() == null || room.getLevel().isViewableAndVisible())
{
for (Geometry roomGeometry : createRoomGeometries(roomPart, texture))
{
roomShape.addGeometry(roomGeometry);
}
}
for (int i = currentGeometriesCount - 1; i >= 0; i--)
{
roomShape.removeGeometry(i);
}
}
示例2: getCubeAsShapeOfQuadArrays
import javax.media.j3d.Shape3D; //导入方法依赖的package包/类
public Shape3D getCubeAsShapeOfQuadArrays(float x, float y, float z) {
Shape3D quadArrayContainer = new Shape3D();
quadArrayContainer.removeGeometry(0);
addCubeToContainer(quadArrayContainer, x, y, z);
return quadArrayContainer;
}
示例3: getLineAsShapeOfLineArray
import javax.media.j3d.Shape3D; //导入方法依赖的package包/类
public Shape3D getLineAsShapeOfLineArray(Point3d p1, Point3d p2) {
Shape3D lineArrayShape = new Shape3D();
lineArrayShape.removeGeometry(0);
addLineToContainer(lineArrayShape, p1, p2);
return lineArrayShape;
}
示例4: getTriangleAsShapeOfTriangleArray
import javax.media.j3d.Shape3D; //导入方法依赖的package包/类
public Shape3D getTriangleAsShapeOfTriangleArray(Point3f p1, Point3f p2, Point3f p3) {
Shape3D triangleArrayShape = new Shape3D();
triangleArrayShape.removeGeometry(0);
addTriangleToContainer(triangleArrayShape, p1, p2, p3);
return triangleArrayShape;
}