| MeasureManagerGetBoundBoxByPlaneVertex(ListInt32, Vector3D) Method |
[바운드 박스] Vertex 좌표 반환
Namespace: VIZCore3D.NET.ManagerAssembly: VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.910 (2.8.24.910)
Syntax public BoundBoxParameter GetBoundBoxByPlaneVertex(
List<int> index,
Vector3D normal
)
Parameters
- index ListInt32
- 노드 인덱스
- normal Vector3D
- 면 방향(Normal)
Return Value
BoundBoxParameterBoundBox Parameter
Example
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
List<Data.Node> nodes = vizcore3d.Object3D.FromFilter(Data.Object3dFilter.SELECTED_TOP);
List<int> nodesIdx = new List<int>();
foreach (Data.Node item in nodes)
nodesIdx.Add(item.Index);
Data.BoundBoxParameter param = vizcore3d.Review.Measure.GetBoundBoxByPlaneVertex(
nodesIdx
, new Data.Vector3D(0, 0, 1)
);
vizcore3d.ShapeDrawing.AddVertex(
param.VertexItems
, 0
, Color.Red
, 3.0f
, 3.0f
, true
);
}
private void Example_DrawBox()
{
List<Data.Node> nodes = vizcore3d.Object3D.FromFilter(Data.Object3dFilter.SELECTED_TOP);
List<int> nodesIdx = new List<int>();
foreach (Data.Node item in nodes)
nodesIdx.Add(item.Index);
Data.BoundBoxParameter param = vizcore3d.Review.Measure.GetBoundBoxByPlaneVertex(
nodesIdx
, new Data.Vertex3D(0, 0, 1)
);
vizcore3d.BeginUpdate();
int shapeId = vizcore3d.ShapeDrawing.AddLine(
param.GetShapeDrawingLineParameter()
, 0
, Color.Black
, 5.0f
, true
);
vizcore3d.ShapeDrawing.DepthTest = true;
for (int i = 0; i < 8; i++)
{
int noteId = vizcore3d.Review.Note.AddNote3D(i.ToString(), param.VertexItems[i]);
vizcore3d.Review.Note.EnableDepthTest(noteId, true);
}
vizcore3d.EndUpdate();
}
See Also