본문으로 건너뛰기

DrawCapsule

Overloads

NameDescription
DrawCapsule(Point p11, Point p12, Point p21, Point p22, int height, int sideCount, int groupId, Color color, float thickness, bool visible)Draw Capsule (Only Z+)
DrawCapsule(Point p1, Point p2, int height, int sideCount, int groupId, Color color, float thickness, bool visible)Draw Capsule (Only Z+)

DrawCapsule(Point p11, Point p12, Point p21, Point p22, int height, int sideCount, int groupId, Color color, float thickness, bool visible)

public int DrawCapsule(Point p11, Point p12, Point p21, Point p22, int height, int sideCount, int groupId, Color color, float thickness, bool visible)

Draw Capsule (Only Z+)

Parameters

NameTypeDescription
p11PointPoint 1-1
p12PointPoint 1-2
p21PointPoint 2-1
p22PointPoint 2-2
heightintHeight
sideCountintSide Count : 6 ~ 36
groupIdintGroup Id
colorColor라인 색상
thicknessfloat라인 두께
visiblebool보이기/숨기기 상태

Returns

TypeDescription
int등록된 개체 ID

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
System.Drawing.Point p11 = new System.Drawing.Point(89479, -135720);
System.Drawing.Point p12 = new System.Drawing.Point(595973, -135720);

System.Drawing.Point p21 = new System.Drawing.Point(89479, -286193);
System.Drawing.Point p22 = new System.Drawing.Point(595973, -286193);

int shapeId = vizcore3d.ShapeDrawing.DrawCapsule(
p11 /* Line #1 Start Point */
, p12 /* Line #1 End Point */
, p21 /* Line #2 Start Point */
, p22 /* Line #2 End Point */
, 91127 /* Height : Z Axis */
, 12 /* Side Count : 6 ~ 36 */
, 1 /* Group Id */
, Color.Purple /* Line Color */
, 5 /* Thickness */
, true /* Visible */
);
}

DrawCapsule(Point p1, Point p2, int height, int sideCount, int groupId, Color color, float thickness, bool visible)

public int DrawCapsule(Point p1, Point p2, int height, int sideCount, int groupId, Color color, float thickness, bool visible)

Draw Capsule (Only Z+)

Parameters

NameTypeDescription
p1PointMin. Point
p2PointMax. Point
heightintHeight
sideCountintSide Count : 6 ~ 36
groupIdintGroup Id
colorColor라인 색상
thicknessfloat라인 두께
visiblebool보이기/숨기기 상태

Returns

TypeDescription
int등록된 개체 ID

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
System.Drawing.Point p1 = new System.Drawing.Point(89479, -135720);
System.Drawing.Point p2 = new System.Drawing.Point(595973, -286193);

int shapeId = vizcore3d.ShapeDrawing.DrawCapsule(
p1 /* Min. Point */
, p2 /* Max. Point */
, 91127 /* Height : Z Axis */
, 12 /* Side Count : 12 ~ 36 */
, 1 /* Group Id */
, Color.Purple /* Line Color */
, 5 /* Thickness */
, true /* Visible */
);
}