Message 1 of 2
Limit the number of tesselated Points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
Any guidance on how to limit the number of tessellated points? say if curve length is 10, just make 5 points.
CurveArray curves = sketch.Profile.get_Item(0);
IList<XYZ> points = new List<XYZ>();
if (null != curves)
{
foreach (Curve cur in curves)
{
if(cur.GetType() == typeof(Line))
{
points.Add(cur.GetEndPoint(0));
}
if (cur.GetType() == typeof(Arc))
{
points = cur.Tessellate() as List<XYZ>;
}
}
foreach (XYZ xYZ in points)
{
//Do something with Points
}
}
Currently it's just creating random number of points
Thank you.