Mesh

Přehled

Mesh je třída v Aspose.3d pro Java. Dědici: Geometry, Iterable<int[]>.

Mesh.Mesh creates an empty mesh instance.

Vlastnosti

NameTypeAccessDescription
polygonCountintReadGets the polygon count.
polygonsList<int[]>ReadGets the polygons.
edgesList<Integer>ReadGets the edges.
manifoldbooleanReadGets the manifold.
visiblebooleanReadGets the visible.
castShadowsbooleanReadGets the cast shadows.
receiveShadowsbooleanReadGets the receive shadows.
controlPointsjava.util.List<Vector4>ReadGets the control points.
vertexElementsjava.util.List<VertexElement>ReadGets the vertex elements.
deformersjava.util.List<Deformer>ReadGets the deformers.
deformers2java.util.Collection<T>ReadGets the deformers2.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Metody

SignatureDescription
Mesh()Creates an empty mesh with default name
Mesh(name: String)Calls Mesh(name) on this Mesh instance.
addControlPoint(x: double, y: double, z: double)Adds a weighted 4D control point
addControlPoint(x: double, y: double, z: double, w: double)Calls addControlPoint(x, y, z, w) on this Mesh instance.
createPolygon(indices: int[])Creates a quadrilateral polygon from four vertex indices
createPolygon(indices: int[], offset: int, length: int)Calls createPolygon(indices, offset, length) on this Mesh instance.
createPolygon(v1: int, v2: int, v3: int)Calls createPolygon(v1, v2, v3) on this Mesh instance.
createPolygon(v1: int, v2: int, v3: int, v4: int)Calls createPolygon(v1, v2, v3, v4) on this Mesh instance.
getPolygonCount() → intReturns the polygon count.
getPolygonSize(index: int) → intReturns the number of vertices of the polygon at the given index
getPolygons() → List<int[]>Returns the polygons.
getEdges() → List<Integer>Returns the edges.
isManifold() → booleanReturns true if manifold is set.
iterator() → Iterator<int[]>Provides an iterator over polygon index arrays
toMesh() → MeshReturns a copy of this mesh as a Mesh object
clone() → MeshCreates a deep copy of the mesh
triangulate() → MeshConverts all polygons to triangles and returns the new mesh
optimize(removeVertices: boolean) → MeshSimplifies geometry considering tolerance, threshold, and angle deviation
optimize(removeVertices: boolean, tolerance: float) → MeshCalls optimize(removeVertices, tolerance) on this Mesh instance.
optimize(removeVertices: boolean, tolerance: float, threshold: float) → MeshCalls optimize(removeVertices, tolerance, threshold) on this Mesh instance.
optimize(removeVertices: boolean, tolerance: float, threshold: float, angleThreshold: float) → MeshCalls optimize(removeVertices, tolerance, threshold, angleThreshold) on this Mesh instance.
optimize2(removeVertices: boolean) → MeshPerforms an alternative optimization on the mesh
union(a: Mesh, b: Mesh) → MeshReturns a mesh representing the union of two meshes
difference(a: Mesh, b: Mesh) → MeshCalls difference(a, b) on this Mesh instance.
intersect(a: Mesh, b: Mesh) → MeshCalls intersect(a, b) on this Mesh instance.
doBoolean(operation: BooleanOperation, a: Mesh, ma: Matrix4, b: Mesh, mb: Matrix4) → MeshPerforms the specified Boolean operation on two transformed meshes
Geometry()Calls Geometry on this Mesh instance.
getVisible() → booleanReturns the visible.
setVisible(value: boolean)Sets the visible value.
getCastShadows() → booleanReturns the cast shadows.
setCastShadows(value: boolean)Initializes a new instance of Box class.
getReceiveShadows() → booleanReturns the receive shadows.
setReceiveShadows(value: boolean)Initializes a new instance of Cylinder class.
getControlPoints() → java.util.List<Vector4>Returns the control points.
getVertexElements() → java.util.List<VertexElement>Returns the vertex elements.
getDeformers() → java.util.List<Deformer>Returns the deformers.
getElement(type: VertexElementType) → VertexElementGets or sets width segments.
createElement(type: VertexElementType) → VertexElementGets or sets the height segments.
addElement(element: VertexElement)Calls addElement(element) on this Mesh instance.
addDeformer(deformer: Deformer)Adds a deformer to this geometry and sets the owner reference.
getVertexElementOfUV(mapping: TextureMapping) → VertexElementUVCalls getVertexElementOfUV(mapping) on this Mesh instance.
createElementUV(mapping: TextureMapping) → VertexElementUVCalls createElementUV(mapping) on this Mesh instance.
getDeformers2() → java.util.Collection<T>Returns the deformers2.
Entity()NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL
getParentNode() → NodeConstructor of instance.
setParentNode(value: Node)The Boolean operator used in the operation to create the result mesh.
getParentNodes() → ArrayList<Node>Protected constructor to allow derived classes to set name.
getExcluded() → booleanThe Boolean operator used in the operation to create the result mesh.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox() → BoundingBoxThe first operand of the Boolean operator.
SceneObject()Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances.
getScene() → SceneConstructor of BooleanOperator.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName() → StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties() → PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String) → PropertyInitializes a new instance of the Bone class.
getProperty(name: String) → ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String) → booleanGets flip coordinate system of control points/normal during importing/exporting.
 Čeština