create_element method

create_element(self, type)

Creates a vertex element with specified type and add it to the geometry.

Returns

Created element.


def create_element(self, type):
    ...
ParameterTypeDescription
typeaspose.threed.entities.VertexElementTypeVertex element type

Remarks

If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.

create_element(self, type, mapping_mode, reference_mode)

Creates a vertex element with specified type and add it to the geometry.

Returns

Created element.


def create_element(self, type, mapping_mode, reference_mode):
    ...
ParameterTypeDescription
typeaspose.threed.entities.VertexElementTypeVertex element type
mapping_modeaspose.threed.entities.MappingModeDefault mapping mode
reference_modeaspose.threed.entities.ReferenceModeDefault reference mode

Remarks

If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.

See Also