CreateElement

Geometry.CreateElement method (1 of 2)

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

public VertexElement CreateElement(VertexElementType type)
Parameter Type Description
type VertexElementType Vertex element type

Return Value

Created element.

Remarks

If type is UV, a VertexElementUV with texture mapping type to Diffuse will be created.

See Also


Geometry.CreateElement method (2 of 2)

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

public VertexElement CreateElement(VertexElementType type, MappingMode mappingMode, 
    ReferenceMode referenceMode)
Parameter Type Description
type VertexElementType Vertex element type
mappingMode MappingMode Default mapping mode
referenceMode ReferenceMode Default reference mode

Return Value

Created element.

Remarks

If type is UV, a VertexElementUV with texture mapping type to Diffuse will be created.

See Also