Class Box3dDispUtil
Utility and Extension of box3d_t.
public static class Box3dDispUtil
- Inheritance
-
Box3dDispUtil
- Inherited Members
Methods
Display(box3d_t, Bind)
public static void Display(this box3d_t src, Bind bind)
Parameters
DisplayFace(box3d_t, Bind)
Display faces of the src.
public static void DisplayFace(this box3d_t src, Bind bind)
Parameters
DisplayLine(box3d_t, Bind)
Display edges of the src.
public static void DisplayLine(this box3d_t src, Bind bind)
Parameters
ExpandToBox3d(nint, BoxableExpandToBox3dDel, ref box3d_t)
Expands a destination box3d_t to include the bounds of a native boxable object.
public static void ExpandToBox3d(nint boxablePtr, Box3dDispUtil.BoxableExpandToBox3dDel boxableExpandToBox3dDel, ref box3d_t dst)
Parameters
boxablePtrnintPointer to the boxable object.
boxableExpandToBox3dDelBox3dDispUtil.BoxableExpandToBox3dDelDelegate to expand the boxable to a box3d_t.
dstbox3d_tThe destination box3d_t to expand.
GetBox(nint, BoxableExpandToBox3dDel)
Gets a box3d_t from a native boxable pointer using the provided delegate.
public static box3d_t GetBox(nint boxablePtr, Box3dDispUtil.BoxableExpandToBox3dDel boxableExpandToBox3dDel)
Parameters
boxablePtrnintPointer to the boxable object.
boxableExpandToBox3dDelBox3dDispUtil.BoxableExpandToBox3dDelDelegate to expand the boxable to a box3d_t.
Returns
- box3d_t
A box3d_t representing the bounds of the boxable object.
ToDraw(box3d_t)
Equivalent to ToDraw_Face(box3d_t)
public static Drawing ToDraw(this box3d_t src)
Parameters
srcbox3d_tsrc
Returns
- Drawing
Drawing
ToDraw_Face(box3d_t)
To Face Drawing.
public static Drawing ToDraw_Face(this box3d_t src)
Parameters
srcbox3d_tsrc
Returns
- Drawing
Face Drawing
ToDraw_Line(box3d_t)
To Line Drawing.
public static Drawing ToDraw_Line(this box3d_t src)
Parameters
srcbox3d_tsrc
Returns
- Drawing
Line Drawing
ToFaceDraw(IEnumerable<box3d_t>)
Get faces Drawing.
public static Drawing ToFaceDraw(this IEnumerable<box3d_t> boxs)
Parameters
boxsIEnumerable<box3d_t>boxes
Returns
- Drawing
a draw with face
ToLineBuf(box3d_t, double[], ref int)
Put the edges' data to dst, totally 72 double.
The data is used according to GL_LINES.
public static int ToLineBuf(this box3d_t src, double[] dst, ref int p)
Parameters
Returns
- int
The
pincrement: 72
ToLineDraw(IEnumerable<box3d_t>)
Get the edges Drawing of boxs.
public static Drawing ToLineDraw(this IEnumerable<box3d_t> boxs)
Parameters
boxsIEnumerable<box3d_t>boxs
Returns
- Drawing
The Drawing
ToLineDraw(IEnumerable<box3d_t>, bool)
Get the edges Drawing of boxs; a
rebuildable one when rebuildable is true
(IsRebuildable), which its owner makes again from
the boxes it keeps once the drawing went stale (IsStale).
public static Drawing ToLineDraw(this IEnumerable<box3d_t> boxs, bool rebuildable)
Parameters
boxsIEnumerable<box3d_t>boxs
rebuildableboolwhether to make the drawing rebuildable
Returns
- Drawing
The Drawing