Click or drag to resize

Polygon Class

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

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

The Polygon type exposes the following members.

Constructors
  NameDescription
Public methodPolygon
Initializes a new instance of the Polygon class
Top
Properties
Methods
  NameDescription
Public methodAddListeners
Public methodCheckToChamfer
Public methodCloseDistance
Public methodDiscardAllDistances
Public methodDiscardLastDistance
Public methodDisplayAnalysisResults
Public methodDisplayDistance
Public methodDisplayStandardMode
Public methodErrorHighlight
Protected methodGenerateMeshes
Public methodGetAnalysisPanels
Public methodGetBoundingBox
Returns the bounding box of the polygon for a given transformation matrix
Public methodGetCornersAngles
Public methodGetVectors
Returns the Vectors of the vertices
Public methodInitialize
Initiates the polygon component
Public methodIntersects
Return the point of intersection between two lines (only for polygons with 2 vertices)
Public methodStatic memberIsClockWise
Public methodIsIncluded
Public methodLength
Public methodLengthToParameter
Public methodOffsetAsLineSegments(Single)
Offsets a polygon as separate line segments on the XZ plane
Public methodOffsetAsLineSegments(Single, Vector3)
Offsets a polygon as separate line segments on a given plane
Public methodOnMoved
Public methodOnStoppedMoving
Protected methodOnUpdated
Public methodParameterToLength
Public methodPointOnCurve(Single)
Returns a point on the curve at a specific length
Public methodPointOnCurve(Single, Vector3)
Public methodPointOnCurve(Vector3, KeyValuePairInt32, Single, Single)
Public methodPointOnCurve(Vector3, Single, Single)
Public methodPointOnCurve(Vector3, Single, Single, Single)
Public methodPointOnCurveLength
Public methodRecalculateDistances
Public methodRemoveListeners
Public methodSelect
Public methodSelectHighlight
Public methodSetOriginalMaterial
Public methodSetPolyline
Sets the polyline of the vertices of the polygon
Public methodSetTypeColor
Sets the color of the type material
Public methodSetTypeMaterialAsOriginal
Public methodSetVertexColors
Public methodShowControlPoints
Shows and hides the control points
Public methodStartDistance
Public methodToggleDistances
Public methodTypeHighlight
Public methodUndoDistance
Public methodUpdateDistance
Public methodUpdateExtrusionHeight
Protected methodUpdateGeometry
Protected methodUpdateGeometryData
Protected methodUpdateMeshComponents
Top
Events
Fields
  NameDescription
Public fieldarea
The area of the polygon
Public fieldcapped
Public fieldclosed
Public fieldcontrolPoint
Public fieldcontrolPointUi
Public fielddistanceOffset
Public fielddistances
Public fielddistancesMaterial
Public fielddistancesParent
Public fielddistancesUI
Public fielddistanceUIParent
Public fieldedgeUiElement
Public fieldeditEdges
Public fieldextrusion
Public fieldflip
Whether the resulting mesh should be flipped
Public fieldisBuildingVertex
Public fieldisClockWise
Public fieldisCopy
Public fieldlineWidth
Public fieldmesh
The mesh of the polygon
Public fieldmeshFilter
The mesh filter which will be used for the mesh
Public fieldmoveable
Public fieldmoveColinear
Public fieldmovePoint
Public fieldmoveUiElement
Public fieldoffsetFromBase
Protected fieldoriginalMaterial
Public fieldperimeter
The perimeter of the polygon
Public fieldshowDistances
Public fieldtypeColor
Protected fieldtypeMaterial
Public fielduseCanvas
Public fieldvertices
The vertices of the polygon as a list of PolygonVertex
Top
See Also