![]() | Object3DPrimitiveManagerAddPrimitiveSphericalCap Method |
Namespace: VIZCore3DX.NET.Manager
public Node AddPrimitiveSphericalCap( Node node, string nodeName, bool IsCreateAssembly, AxisAnchor axisAnchor, Color color, float radius, float height, Vector3D move, ushort segmentCount = 12 )
// VIZCore3DX.NET Control private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx; private void Example() { List<string> strings = new List<string>(); strings.Add("PIPE"); List<Data.Node> nodes = vizcore3dx.Object3D.Find.QuickSearch(strings, false, true, true, false, false); if (nodes.Count <= 0) return; Data.Node node = vizcore3dx.Object3D.Primitive.AddPrimitiveSphericalCap(nodes[0], "Primitive SphericalCap", true, Data.AxisAnchor.Min, Color.Yellow, 600, 300, new Data.Vector3D(207699.75f, -60.75f, 6758.44), 64); vizcore3dx.StatusbarInfo.Text = string.Format("'{0}' 노드 생성", node.NodeName); }