create_element method

create_element

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

Returns

Created element.

def create_element(self, type):
    ...
ParameterTypeDescription
typeVertexElementTypeVertex element type

Remarks

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

create_element

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
typeVertexElementTypeVertex element type
mapping_modeMappingModeDefault mapping mode
reference_modeReferenceModeDefault reference mode

Remarks

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

See Also