Class CIMShapeVertex
Represents a shape vertex.
public class CIMShapeVertex : CIMObject
- Inheritance
-
CIMShapeVertex
- Inherited Members
Remarks
Each Vertex in a 3DShapeGraphic is represented by three points, contained in a ShapeVertex. The first point is the actual position of the Vertex. The second represents the normalized vector that describes the orientation of the point. The last point is optional - it defines the coordinates of the texture that correspond with this point in the shape. In this case only x and y are used as the traditional texture coordinates S and T.
Constructors
CIMShapeVertex()
public CIMShapeVertex()
Properties
NormalVector
Gets or sets the normal vector.
public IPoint NormalVector { get; set; }
Property Value
Position
Gets or sets the position.
public IPoint Position { get; set; }
Property Value
TextureCoordinate
Gets or sets the texture coordinate.
public IPoint TextureCoordinate { get; set; }
Property Value
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMShapeVertex with a specified state from a JSON encoding.
public static CIMShapeVertex FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMShapeVertex state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMShapeVertex and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.