Table of Contents

Class Box3dUtil

Namespace
Hi.Disp
Assembly
HiDisp.dll

Utility and Extension of Box3d.

public static class Box3dUtil
Inheritance
Box3dUtil
Inherited Members

Methods

Display(Box3d, Bind)

public static void Display(this Box3d src, Bind bind)

Parameters

src Box3d

src

bind Bind

bind

DisplayFace(Box3d, Bind)

Display faces of the src.

public static void DisplayFace(this Box3d src, Bind bind)

Parameters

src Box3d

src

bind Bind

bind

DisplayLine(Box3d, Bind)

Display edges of the src.

public static void DisplayLine(this Box3d src, Bind bind)

Parameters

src Box3d

src

bind Bind

bind

ExpandToBox3d(nint, BoxableExpandToBox3dDel, Box3d)

Expands a destination Box3d to include the bounds of a native boxable object.

public static void ExpandToBox3d(nint boxablePtr, Box3dUtil.BoxableExpandToBox3dDel boxableExpandToBox3dDel, Box3d dst)

Parameters

boxablePtr nint

Pointer to the boxable object.

boxableExpandToBox3dDel Box3dUtil.BoxableExpandToBox3dDel

Delegate to expand the boxable to a box3d.

dst Box3d

The destination Box3d to expand.

GetBox(nint, BoxableExpandToBox3dDel)

Gets a Box3d from a native boxable pointer using the provided delegate.

public static Box3d GetBox(nint boxablePtr, Box3dUtil.BoxableExpandToBox3dDel boxableExpandToBox3dDel)

Parameters

boxablePtr nint

Pointer to the boxable object.

boxableExpandToBox3dDel Box3dUtil.BoxableExpandToBox3dDel

Delegate to expand the boxable to a box3d.

Returns

Box3d

A Box3d representing the bounds of the boxable object.

GetFaceDraw(params Box3d[])

Get faces Drawing.

public static Drawing GetFaceDraw(params Box3d[] boxs)

Parameters

boxs Box3d[]

boxes

Returns

Drawing

a draw with face

GetLineDraw(params Box3d[])

Get the edges Drawing of boxs.

public static Drawing GetLineDraw(params Box3d[] boxs)

Parameters

boxs Box3d[]

boxs

Returns

Drawing

The Drawing

ToDraw(Box3d)

Equivalent to ToDraw_Face(Box3d)

public static Drawing ToDraw(this Box3d src)

Parameters

src Box3d

src

Returns

Drawing

Drawing

ToDraw_Face(Box3d)

To Face Drawing.

public static Drawing ToDraw_Face(this Box3d src)

Parameters

src Box3d

src

Returns

Drawing

Face Drawing

ToDraw_Line(Box3d)

To Line Drawing.

public static Drawing ToDraw_Line(this Box3d src)

Parameters

src Box3d

src

Returns

Drawing

Line Drawing

ToLineBuf(Box3d, 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 src, double[] dst, ref int p)

Parameters

src Box3d

src

dst double[]

dstination buffer

p int

current position of the buffer

Returns

int

The p increment: 72