Click or drag to resize

Polygon Class

A polygon Unity component
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          BrydenWoodUnity.GeometryManipulationSelectableGeometry
            BrydenWoodUnity.GeometryManipulationEditableGeometry
              BrydenWoodUnity.GeometryManipulationPolygon

Namespace:  BrydenWoodUnity.GeometryManipulation
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class Polygon : EditableGeometry

The Polygon type exposes the following members.

Constructors
  NameDescription
Public methodPolygon
Initializes a new instance of the Polygon class
Top
Properties
  NameDescription
Public propertyCenter
Public propertyhasListeners
Public propertymesh
The mesh of the polygon
Public propertymovePoint
Public propertyvertices
The vertices of the polygon as a list of PolygonVertex
Top
Methods
  NameDescription
Public methodAddListeners
Public methodDisplayStandardMode
Public methodGetBoundingBox
Public methodGetVectors
Public methodInitialize
Initiates the polygon component
Public methodStatic memberIsClockWise
Public methodIsIncluded
Public methodOffset
Offsets the polygon based on the given distance
Public methodOnMoved
Public methodOnStoppedMoving
Public methodRemoveListeners
Public methodSetOriginalMaterial
Public methodSetPolyline
Sets the polyline of the vertices of the polygon
Public methodShowControlPoints
Public methodUpdateGeometry
Public methodUpdateOffset
Top
Events
Fields
  NameDescription
Public fieldarea
Public fieldbasePolygon
Public fieldcapped
Public fieldcontrolPoint
Public fieldedgeUiElement
Public fieldflip
Whether the resulting mesh should be flipped
Public fieldgenerateMesh
The area of the polygon
Public fieldisClockWise
Public fieldisOffseted
Public fieldmeshFilter
The mesh filter which will be used for the mesh
Public fieldmoveUiElement
Public fieldoffsetDist
Public fieldoffsetFromBase
Public fieldperimeter
The perimeter of the polygon
Public fieldvisibleMesh
Top
See Also