Class Datapolygon
Controls an instance of a Polygon ViRGIS component
Assembly: cs.temp.dll.dll
Syntax
public class Datapolygon : VirgisFeature, IVirgisFeature, IVirgisEntity
Fields
Polygon
Declaration
public List<Dataline> Polygon
Field Value
VertexTable
Declaration
public List<VertexLookup> VertexTable
Field Value
Methods
AddVertex(Vector3)
Declaration
public override VirgisFeature AddVertex(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Overrides
Draw(List<Dataline>, Material)
Called to draw the Polygon based upon the
Declaration
public GameObject Draw(List<Dataline> polygon, Material mat = null)
Parameters
Type |
Name |
Description |
List<Dataline> |
polygon |
|
Material |
mat |
Material to be used
|
Returns
Type |
Description |
GameObject |
|
GetVertexes()
Get an array of the Datapoint components for the vertexes
Declaration
public Datapoint[] GetVertexes()
Returns
MoveAxis(MoveArgs)
Declaration
public override void MoveAxis(MoveArgs args)
Parameters
Overrides
MoveTo(MoveArgs)
Declaration
public override void MoveTo(MoveArgs args)
Parameters
Overrides
RemoveVertex(VirgisFeature)
Declaration
public override void RemoveVertex(VirgisFeature vertex)
Parameters
Overrides
Selected(SelectionTypes)
Declaration
public override void Selected(SelectionTypes button)
Parameters
Overrides
ShapeMoveVertex(MoveArgs)
Move a vertex of the polygon and recreate the mesh
Declaration
public void ShapeMoveVertex(MoveArgs data)
Parameters
Type |
Name |
Description |
MoveArgs |
data |
MoveArgs
|
Translate(MoveArgs)
Declaration
public override void Translate(MoveArgs args)
Parameters
Overrides
UnSelected(SelectionTypes)
Declaration
public override void UnSelected(SelectionTypes button)
Parameters
Overrides
VertexMove(MoveArgs)
Declaration
public override void VertexMove(MoveArgs data)
Parameters
Overrides
Implements