MeasureManagerAddCustomCylinderCylinderAxisCrossPoint Method |
Namespace: VIZCore3D.NET.Manager
public int AddCustomCylinderCylinderAxisCrossPoint( int index1, int index2 )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { VIZCore3D.NET.Data.Node pipe = vizcore3d.Object3D.FromIndex(4); List<VIZCore3D.NET.Data.Node> cylinder1 = pipe.GetChildObject3d( Data.Object3DChildOption.CHILD_ONLY /* Option */ , new List<string>() { "Part 1 of PIPE" } /* Keyword */ , false /* Join Condition */ , false /* Assembly Only */ , false /* Visible Only */ , false /* Full Match */ ); List<VIZCore3D.NET.Data.Node> cylinder2 = pipe.GetChildObject3d( Data.Object3DChildOption.CHILD_ONLY /* Option */ , new List<string>() { "Part 2 of PIPE" } /* Keyword */ , false /* Join Condition */ , false /* Assembly Only */ , false /* Visible Only */ , false /* Full Match */ ); if (cylinder1.Count == 0) return; if (cylinder2.Count == 0) return; int measureId = vizcore3d.Review.Measure.AddCustomCylinderCylinderAxisCrossPoint( cylinder1[0].Index /* Cylinder Node Index */ , cylinder2[0].Index /* Cylinder Node Index */ ); }