AnyCAD Rapid API 2023
Help you to create a better world!
Sketch2dBuilder Class Reference

Static Public Member Functions

static TopoShape MakeLine (GPnt2d start, GPnt2d end)
 
static TopoShape MakeLine (GLin2d line, double p1, double p2)
 
static TopoShape MakeArcByLines (TopoShape line1, TopoShape line2, double radius, double tol)
 
static TopoShape MakeCircle (GCirc2d cirlce)
 
static TopoShape MakeArc (GCirc2d cirlce, double p1, double p2)
 
static TopoShape MakeArc (GPnt2d start, GPnt2d end, double bulge)
 
static TopoShape MakeElips (GElips2d elips)
 
static TopoShape MakeElipsArc (GElips2d elips, double p1, double p2)
 
static TopoShape MakeHypr (GHypr2d hypr, double p1, double p2)
 
static TopoShape MakeParab (GParab2d parab, double p1, double p2)
 
static TopoShape MakeBSpline (GPnt2dList points, boolean periodicFlag, double tolerance)
 
static TopoShape MakeBSpline (GPnt2dList poles, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag)
 
static TopoShape MakeBSpline (GPnt2dList poles, DoubleList knots, Uint32List multiplicities, long degree)
 
static TopoShape MakeBSpline (GPnt2dList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag)
 
static TopoShape MakeBSpline (GPnt2dList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree)
 

Detailed Description

<>
Shape2dBuilder

Method to build basic 2d curve shapes.

Member Function Documentation

◆ MakeArc()

static TopoShape Sketch2dBuilder.MakeArc ( GCirc2d  cirlce,
double  p1,
double  p2 
)
static

Make arc.

Parameters
cirlcethe circle object.
p1the first paramter.
p2the second paramter.
Returns
the arc.

◆ MakeArcByLines()

static TopoShape Sketch2dBuilder.MakeArcByLines ( TopoShape  line1,
TopoShape  line2,
double  radius,
double  tol 
)
static

Make arc between two lines.

Parameters
line1the first line.
line2the second line.
radiusthe radius.
tolthe tolerance.
Returns
the arc.

◆ MakeBSpline()

static TopoShape Sketch2dBuilder.MakeBSpline ( GPnt2dList  points,
boolean  periodicFlag,
double  tolerance 
)
static

Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.

Parameters
pointsthe points.
periodicFlagif periodic.
tolerancethe tolerance.
Returns
the shape

◆ MakeCircle()

static TopoShape Sketch2dBuilder.MakeCircle ( GCirc2d  cirlce)
static

Make circle shape.

Parameters
cirlcethe circle object.
Returns
the shape.

◆ MakeElips()

static TopoShape Sketch2dBuilder.MakeElips ( GElips2d  elips)
static

Make ellipse shape.

Parameters
elipsthe ellipse object.
Returns
the ellipse shape.

◆ MakeElipsArc()

static TopoShape Sketch2dBuilder.MakeElipsArc ( GElips2d  elips,
double  p1,
double  p2 
)
static

Make ellipse arc.

Parameters
elipsthe ellipse object.
p1the first parameter.
p2the second parameter.
Returns
the ellipse arc.

◆ MakeHypr()

static TopoShape Sketch2dBuilder.MakeHypr ( GHypr2d  hypr,
double  p1,
double  p2 
)
static

Make hyperbola curve.

Parameters
hyprthe hyperbola object.
p1the first parameter.
p2the second parameter.
Returns
the hyperbola curve.

◆ MakeLine() [1/2]

static TopoShape Sketch2dBuilder.MakeLine ( GLin2d  line,
double  p1,
double  p2 
)
static

Make line with line objet between two paramters.

Parameters
linethe line object.
p1the first parameter.
p2the sectiond parameter.
Returns
the line shape.

◆ MakeLine() [2/2]

static TopoShape Sketch2dBuilder.MakeLine ( GPnt2d  start,
GPnt2d  end 
)
static

Make line with two points.

Parameters
startthe start position.
endthe end position.
Returns
the line.

◆ MakeParab()

static TopoShape Sketch2dBuilder.MakeParab ( GParab2d  parab,
double  p1,
double  p2 
)
static

Make parabola curve.

Parameters
parabthe parabola object.
p1the first parameter.
p2the second parameter.
Returns
the parabola curve.