SetSymbolAnchorPosition
public void SetSymbolAnchorPosition(int instanceIndex, AnchorPoint anchor, Vertex3D targetPos)
배치된 Symbol 인스턴스를 이동시켜 지정 AnchorPoint 가 targetPos 에 오도록 배치.
Remarks
순수 평행이동으로 방향은 그대로 유지된다.
아직 화면에 렌더링되지 않은 심볼은 이동되지 않는다.
Parameters
| Name | Type | Description |
|---|---|---|
| instanceIndex | int | 배치 인스턴스 인덱스 (0 .. GetPlacedSymbolCount()-1) |
| anchor | AnchorPoint | 기준 anchor (Horizontal 0=Left..1=Right, Vertical 0=Top..1=Bottom) |
| targetPos | Vertex3D | anchor 를 맞출 목표 월드 좌표 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
// [전제] 이동시킬 배치 Symbol 이 화면에 필요(정의 로드 + 배치 선행). 없으면(0) 중단.
if (vizcore3d.Review.Symbol.GetPlacedSymbolCount() == 0) return;
// 첫 번째(index 0) 배치 Symbol 을 강체 이동시켜, 그 좌하단(BottomLeft) 모서리가
// 월드 좌표 (100,200,0) 에 정확히 오도록 배치.
// - Symbol 은 회전 자유도가 없어 순수 평행이동 → 방향 그대로 보존.
// - 기준 anchor 를 Center 로 주면 마우스 배치처럼 "중심을 그 좌표에" 정렬.
vizcore3d.Review.Symbol.SetSymbolAnchorPosition(
0,
VIZCore3D.NET.Data.AnchorPoint.BottomLeft,
new VIZCore3D.NET.Data.Vertex3D(100.0f, 200.0f, 0.0f));
}