Click or drag to resize

Object3DPrimitiveManagerAddPrimitiveSphericalCap Method

Primitive SphericalCap 생성

Namespace:  VIZCore3DX.NET.Manager
Assembly:  VIZCore3DX.NET (in VIZCore3DX.NET.dll) Version: 1.1.25.827 (1.1.25.827)
Syntax
C#
public Node AddPrimitiveSphericalCap(
	Node node,
	string nodeName,
	bool IsCreateAssembly,
	AxisAnchor axisAnchor,
	Color color,
	float radius,
	float height,
	Vector3D move,
	ushort segmentCount = 12
)

Parameters

node
Type: VIZCore3DX.NET.DataNode
Primitive 부모 노드
nodeName
Type: SystemString
노드 이름
IsCreateAssembly
Type: SystemBoolean
Assembly 노드 생성 여부(선택된 노드가 Assembly 일 경우 생성 또는 미생성, Part 인 경우에는 Assembly 생성 안됨)
axisAnchor
Type: VIZCore3DX.NET.DataAxisAnchor
상자 생성 기준점 지정
color
Type: System.DrawingColor
색상
radius
Type: SystemSingle
반지름
height
Type: SystemSingle
높이
move
Type: VIZCore3DX.NET.DataVector3D
이동값
segmentCount (Optional)
Type: SystemUInt16
원형 품질 개수(8 ~ 128)

Return Value

Type: Node
생성된 Node 정보
Examples
C#
// 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);
}
See Also