Prod.: Engine, ver.: 6, ID: 60000583, HowTo : IsClockWise property of Vertexes

HowTo : IsClockWise property of Vertexes

Article60000583
TypeHowTo
ProductEngine
Version6
Date Added7/22/2008
Submitted byKostas 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();