private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
Node node = vizcore3d.Object3D.FromDepth(0)[0];
VIZCore3D.NET.Data.Vertex3D angle1_p1 = new VIZCore3D.NET.Data.Vertex3D(node.GetBoundBox().MinX, node.GetBoundBox().MinY, node.GetBoundBox().MinZ);
VIZCore3D.NET.Data.Vertex3D angle1_vertex = new VIZCore3D.NET.Data.Vertex3D(node.GetBoundBox().MaxX, node.GetBoundBox().MinY, node.GetBoundBox().MinZ);
VIZCore3D.NET.Data.Vertex3D angle1_p3 = new VIZCore3D.NET.Data.Vertex3D(node.GetBoundBox().MaxX, node.GetBoundBox().MaxY, node.GetBoundBox().MinZ);
int id = vizcore3d.Review.Measure.AddCustom3PointAngle(angle1_p1, angle1_vertex, angle1_p3);
vizcore3d.Drawing2D.Object2D.Create2DViewObjectWithModelAtCanvasOrigin(Drawing2D_ModelViewKind.CURRENT);
vizcore3d.Drawing2D.Measure.Add2DMeasureFrom3DMeasure(new int[] { id });
List<Object2D> list = vizcore3d.Drawing2D.Object2D.GetObjectAllinfoBy2DView();
List<Object2D> angleList = new List<Object2D>();
if (list.Count == 0) return;
foreach (Object2D obj in list)
{
if (obj.Kind == Object2D_Types.MEASURE_ANGLE)
{
angleList.Add(obj);
}
}
if (angleList.Count > 0)
{
int id1 = angleList[0].ID;
vizcore3d.Drawing2D.Measure.GetLabelAlignmentOnDimension(id1, out LabelHorizontalAnchor hAlign1, out LabelVerticalAnchor vAlign1);
bool isAligned1 = vizcore3d.Drawing2D.Measure.IsLabelAlignedOnDimension(id1);
float r1 = vizcore3d.Drawing2D.Measure.GetAngleMeasureDimensionRadius(id1);
vizcore3d.Drawing2D.Measure.SetAngleMeasureDimensionRadius(id1, 1.2f * r1);
vizcore3d.Drawing2D.Measure.SetLabelAlignmentOnDimension(id1, LabelHorizontalAnchor.Right, LabelVerticalAnchor.Top);
}
}