Click or drag to resize

ShapeDrawingManagerAddCircle Method

추가

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1204 (2.8.24.1204)
Syntax
C#
public int AddCircle(
	Vertex3D center,
	Vertex3D normal,
	float radius,
	int sideCount,
	int groupId,
	Color color,
	bool visible
)

Parameters

center
Type: VIZCore3D.NET.DataVertex3D
중심점
normal
Type: VIZCore3D.NET.DataVertex3D
방향
radius
Type: SystemSingle
Radius
sideCount
Type: SystemInt32
외곽 점 수
groupId
Type: SystemInt32
Group ID
color
Type: System.DrawingColor
색상
visible
Type: SystemBoolean
Visible

Return Value

Type: Int32
등록된 개체 ID
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    Data.Vertex3D center = new Data.Vertex3D(0, -50, 0);
    Data.Vertex3D normal = new Data.Vertex3D(0, 1, 0);

    int shapeId = vizcore3d.ShapeDrawing.AddCircle(
        center          /* Center Vertex */
        , 46685         /* Radius */
        , 36            /* Side Count : 12 ~ 36 */
        , normal        /* normal */
        , 1             /* Group Id */
        , Color.Purple  /* Line Color */
        , true          /* Visible */
        );
}
See Also