HowTo : IsClockWise property of Vertexes
Article | 60000583 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 7/22/2008 |
Submitted by | Kostas Christodoulou |
Keywords | |
Subject
IsClockWise property of Vertexes
Summary
Can you add the IsClockWise property in Vertexes ?
Bulges are also not calculated in Area of Vertexes.
Solution
The Area of Vertexes is calculated only for 2D points and without the bulges. Also the IsClockWise cannot be
applied because the Vertexes doe not have an ECS matrix as the vdPolyline has. So in order to get the area of a Vertexes and if it is clock-wise or not you have to use a code like :
VectorDraw.Professional.vdFigures.vdPolyline poly = new VectorDraw.Professional.vdFigures.vdPolyline();
poly.SetUnRegisterDocument(vdFramedControl.BaseControl.ActiveDocument);
poly.SetDocumentDefaults();
poly.VertexList = new VectorDraw.Geometry.Vertexes(myVertexes);
poly.Update();
double myArea=poly.Area();
bool isClockW = poly.IsClockWise();