Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

Polygonal

Python API types
Read time 8 minutesLast updated 21 hours ago

Edge

An Edge is composed by two vertices and is connected to the polygons of a tessellation. It is the dimension-1 element. Base class: polygonal.Element
Functions accepting this type or a list of this type as a parameter:

Element

Element is the base type for polygons, edges and vertices. Base class: geom.GeomEntity Derived classes:
Functions accepting this type or a list of this type as a parameter:

Joint

A Joint is a bone of a skeleton. Base class: core.Entity Derived class: PlaceholderJoint
Functions accepting this type or a list of this type as a parameter:

JointList

List of polygonal.Joint Functions accepting this type or a list of this type as a parameter:

Mesh

A mesh is the base class for a polygonal mesh. It is structured with polygons, edges and vertices. Base class: geom.GeomEntity Derived classes:
Functions accepting this type or a list of this type as a parameter:

MeshDefinition

Mesh definition. Fields

Type

Name

Default

Description

idMesh0The mesh from which we get the definition.
externalIdIdent0External ID used for API integrations.
verticesPoint3ListVertices coordinates.
normalsVector3ListVertices normals.
tangentsVector4ListVertices tangents.
uvChannelsIntListUV channels.
uvsPoint2ListListArray of vertices uv coordinates (one array per channel).
vertexColorsColorAlphaListVertex colors.
curvaturesCurvaturesListVertices curvatures.
trianglesIntListTriangles (vertex indices).
quadranglesIntListQuadrangles (vertex indices).
vertexMergedIntListArray which contains for each vertex in vertices the vertex that it is merged with.
submeshesSubmeshListArray which contain information about multi materials mesh.
linesVerticesPoint3ListLines vertices coordinates.
linesStylizedLineListLines vertices indices.
pointsPoint3ListPoints.
pointsColorsVector3ListPoints colors.
jointsJointListJoints (bones) identifiers.
inverseBindMatricesMatrix4ListJoints inverse bind matrices (bones poses).
jointWeightsVector4ListJoints (bones) weights.
jointIndicesVector4IListJoints (bones) indices.
Functions accepting this type or a list of this type as a parameter:

MeshDefinitionList

List of polygonal.MeshDefinition Functions accepting this type or a list of this type as a parameter:

MeshList

List of polygonal.Mesh Functions accepting this type or a list of this type as a parameter:

PlaceholderJoint

A placeholder joint is a fake joint that contains user defined data for SDK integration purpose. Base class: polygonal.Joint
Functions accepting this type or a list of this type as a parameter:

PlaceholderJointList

List of polygonal.PlaceholderJoint Functions accepting this type or a list of this type as a parameter:

Polygon

A Polygon is composed by 3 or more edges. It is the dimension-2 element. Base class: polygonal.Element
Functions accepting this type or a list of this type as a parameter:

StaticMesh

A static mesh is a mesh representation used for storage. Base class: polygonal.Mesh
Functions accepting this type or a list of this type as a parameter:

StyleType

Enum of core.Long

Name

Value

NORMAL0
STIPPLE1

StylizedLine

Fields

Type

Name

Default

Description

lineVertexIndicesIntListList of lineVertices index. The indices for a line must be chained (e.g. 0 3 2 1 will create edges 0-3 3-2 2-1).
materialMaterial0Material applied to the line if any.
externalIdIdent0External ID.

StylizedLineList

List of polygonal.StylizedLine

Submesh

Submesh for polygon material assignation. Fields

Type

Name

Default

Description

materialMaterial0Polygon material's dressed with.
firstTriInt0First triangle.
triCountInt0Number of triangles.
firstQuadInt0First quad.
quadCountInt0Number of quad.
externalIdIdent0External ID.

SubmeshList

List of polygonal.Submesh

Tessellation

A Tessellation is a dynamic mesh representation. Base class: polygonal.Mesh
Functions accepting this type or a list of this type as a parameter:

TessellationAttribute

A TessellationAttribute is an attribute applied to the elements of the tessellation. It can be normals, texture coordinates, patches or more advanced types like visibility attributes, curvatures attributes, etc... Base class: core.Entity
Functions accepting this type or a list of this type as a parameter:

TessellationList

List of polygonal.Tessellation

TopologyCategoryMask

The topology cmasl is a combination of TopologyConnectivityMask and TopologyDimensionMask. Fields

Type

Name

Default

Description

dimensionTopologyDimensionMaskALL
connectivityTopologyConnectivityMaskALL
Functions accepting this type or a list of this type as a parameter:

TopologyConnectivityMask

The topology connectivity mask is used to filter some processus using the topological connectivity of elements (border, non-manifold, etc...). Enum of core.Long

Name

Value

NONE0
MANIFOLD1
BOUNDARY2
NONMANIFOLD4
BOUNDARY_NONMANIFOLD6
FREE8
ALL15

TopologyDimensionMask

The topology dimension mask is used to filter some processes using the topological dimension of the support of vertices. Enum of core.Long

Name

Value

NONE0
VERTEX1
LINE2
FACE4
ALL7

Vertex

A Vertex is defined by a position and is connected to the edges of a tessellation. It is the dimension-0 element. Base class: polygonal.Element
Functions accepting this type or a list of this type as a parameter: