Geometry.CreateElement

CreateElement(VertexElementType)

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

public VertexElement CreateElement(VertexElementType type)
ParameterTypeDescription
typeVertexElementTypeVertex element type

Return Value

Created element.

Remarks

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

See Also


CreateElement(VertexElementType, MappingMode, ReferenceMode)

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

public VertexElement CreateElement(VertexElementType type, MappingMode mappingMode, 
    ReferenceMode referenceMode)
ParameterTypeDescription
typeVertexElementTypeVertex element type
mappingModeMappingModeDefault mapping mode
referenceModeReferenceModeDefault reference mode

Return Value

Created element.

Remarks

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

See Also