Hey there,
tried to get it done with the triangle mesh. But i failed again.
As i said i want to combine multiple cylinders with one rectangle.
First i collect all points of the cylinders. Therefore i add the new cylinders in a loop to the builder and save the calculated positions in an array
insideMeshBuilder.AddCylinder(
new Point3D(drillPartMin.X, drillPartMin.Y, drillPartMin.Z),
new Point3D(drillPartMax.X, drillPartMax.Y, drillPartMax.Z),
unitTask.Information.Diameter,
ThetaDiv);
List<point3d> combinedPoints = new List<point3d>();
foreach (Point3D point in insideMeshBuilder.Positions)
{
combinedPoints.Add(point);
}
</point3d></point3d>
In the second step i add the points of the cube to that collection.
meshBuilder.AddBox(new Rect3D(new Point3D(min.X, min.Y, min.Z), new Size3D(dim.X, dim.Y, dim.Z)));
List<point3d> combinedPoints = new List<point3d>();
foreach (Point3D point in meshBuilder.Positions)
{
combinedPoints.Add(point);
}
</point3d></point3d>
Now i have all points which i need to define the modell. I don't know how to connect these points to build a visual surface. I guess i need some sort of triangulation? Or is there a meshBuilder method to build models only by a point cloud?
Thanks for your help! =)