본문으로 건너뛰기

CreateCircleShape

Overloads​

NameDescription
CreateCircleShape(CircleData circle, int segmentCount, float strokeThickness, StrokePattern strokePattern, Color strokeColor)원 형상 생성
CreateCircleShape(CircleData circle, int segmentCount, float strokeThickness, StrokePattern strokePattern, Color strokeColor, Vector3D position, Quaternion rotation)원 형상 생성 (위치/회전 지정)

CreateCircleShape(CircleData circle, int segmentCount, float strokeThickness, StrokePattern strokePattern, Color strokeColor)​

public CircleShape CreateCircleShape(CircleData circle, int segmentCount, float strokeThickness, StrokePattern strokePattern, Color strokeColor)

원 형상 생성

Parameters​

NameTypeDescription
circleCircleData원 객체 (circle.IsValid == true)
segmentCountint세그먼트 개수 (segmentCount >= 8)
strokeThicknessfloat선 두께 (1 ~ 10)
strokePatternStrokePattern선 패턴
strokeColorColor선 색상

Returns​

TypeDescription
CircleShapeCircleShape

Examples​

// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

public void Example()
{
// 원 객체 (중심 / 법선 / 반지름)
Data.CircleData circle = new Data.CircleData
{
Center = new Data.Vertex3D(0f, 0f, 0f),
Normal = new Data.Vector3D(0f, 0f, 1f), // 원이 놓이는 평면의 법선
Radius = 5000f
};

// segmentCount=곡선 품질(클수록 매끈), 2.0f=선 두께(1~10)
var shape = vizcore3dx.Shape.CreateCircleShape(circle, 64, 2.0f, Data.StrokePattern.Solid, Color.Red);
if (shape == null) return;

shape.Category = "Guides"; // (선택) 분류 — 그룹 단위 조회/표시/삭제
shape.IsDepthTestEnabled = false; // (선택) 모델에 가려져도 항상 표시

vizcore3dx.View.FitToView(); // 생성된 형상이 보이도록 화면 맞춤
}

CreateCircleShape(CircleData circle, int segmentCount, float strokeThickness, StrokePattern strokePattern, Color strokeColor, Vector3D position, Quaternion rotation)​

public CircleShape CreateCircleShape(CircleData circle, int segmentCount, float strokeThickness, StrokePattern strokePattern, Color strokeColor, Vector3D position, Quaternion rotation)

원 형상 생성 (위치/회전 지정)

Parameters​

NameTypeDescription
circleCircleData원 객체 (circle.IsValid == true)
segmentCountint세그먼트 개수 (segmentCount >= 8)
strokeThicknessfloat선 두께 (1 ~ 10)
strokePatternStrokePattern선 패턴
strokeColorColor선 색상
positionVector3D위치
rotationQuaternion회전

Returns​

TypeDescription
CircleShapeCircleShape

Examples​

// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

public void Example()
{
Data.CircleData circle = new Data.CircleData
{
Center = new Data.Vertex3D(0f, 0f, 0f),
Normal = new Data.Vector3D(0f, 0f, 1f),
Radius = 5000f
};

// 마지막 2개 인자 = 위치/회전 (생성과 동시에 배치)
var shape = vizcore3dx.Shape.CreateCircleShape(
circle, 64, 2.0f, Data.StrokePattern.Solid, Color.Red,
new Data.Vector3D(10000f, 0f, 0f), Data.Quaternion.Identity);
if (shape == null) return;

vizcore3dx.View.FitToView();
}