Mesh

Overview

Mesh is a class in Aspose.3D FOSS for Python. Inherits from: Geometry.

Mesh.create_polygon creates a new polygon and returns its index.

This class provides 13 methods for working with Mesh objects in Python programs. Available methods include: __init__, create_polygon, difference, do_boolean, get_bounding_box, get_entity_renderer_key, get_polygon_size, intersect, is_manifold, optimize, to_mesh, triangulate, and 1 additional methods. All exported members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: control_points, deformers, edges, polygon_count, polygons.

Properties

NameTypeAccessDescription
control_pointsList[Vector4]ReadGets the control points.
edgesList[int]ReadGets the edges.
polygon_countintReadGets the polygon count.
polygonsList[List[int]]ReadGets the polygons.
deformers``ReadGets the deformers.

Methods

SignatureDescription
__init__(name: str, height_map, transform: Matrix4, tri_mesh: bool)
create_polygon()Creates a new polygon and returns its index
get_polygon_size(index: int)intReturns the number of vertices in the polygon at given index
to_mesh()'Mesh'Returns a Mesh instance representing the current object
optimize(vertex_elements: bool, tolerance_control_point: float, tolerance_normal: float, tolerance_uv: float)'Mesh'Not implemented in the FOSS edition — throws at runtime. Reduces mesh complexity using tolerances and optional vertex elements
do_boolean(op: BooleanOperation, a: 'Mesh', transform_a: Optional[Matrix4], b: 'Mesh', transform_b: Optional[Matrix4])'Mesh'Not implemented in the FOSS edition — throws at runtime. Performs a Boolean operation on two meshes with optional transforms
is_manifold()boolNot implemented in the FOSS edition — throws at runtime. Returns true if manifold is set.
union(a: 'Mesh', b: 'Mesh')'Mesh'Not implemented in the FOSS edition — throws at runtime. Returns a new mesh representing the union of two meshes
difference(a: 'Mesh', b: 'Mesh')'Mesh'Not implemented in the FOSS edition — throws at runtime. Returns a new mesh representing mesh a minus mesh b
intersect(a: 'Mesh', b: 'Mesh')'Mesh'Not implemented in the FOSS edition — throws at runtime.
triangulate()'Mesh'Converts all polygons to triangles and returns the modified mesh
get_bounding_box()Returns the bounding box.
get_entity_renderer_key()Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key.

See Also