본문으로 건너뛰기

AddCircle

public int AddCircle(Vertex3D center, Vertex3D normal, float radius, int sideCount, int groupId, Color color, bool visible)

추가

Parameters​

NameTypeDescription
centerVertex3D중심점
normalVertex3D방향
radiusfloatRadius
sideCountint외곽 점 수
groupIdintGroup ID
colorColor색상
visibleboolVisible

Returns​

TypeDescription
int등록된 개체 ID

Examples​

// 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 */
);
}