AnyCAD Rapid SDK  2021
The Rapid CAD SDK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Sketch2dBuilder Class Reference

Public Member Functions

synchronized void delete ()
 

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 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)
 

Protected Member Functions

 Sketch2dBuilder (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (Sketch2dBuilder obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description


Shape2dBuilder

Method to build basic 2d curve shapes.

Member Function Documentation

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.
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.
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
static TopoShape Sketch2dBuilder.MakeCircle ( GCirc2d  cirlce)
static

Make circle shape.

Parameters
cirlcethe circle object.
Returns
the shape.
static TopoShape Sketch2dBuilder.MakeElips ( GElips2d  elips)
static

Make ellipse shape.

Parameters
elipsthe ellipse object.
Returns
the ellipse shape.
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.
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.
static TopoShape Sketch2dBuilder.MakeLine ( GPnt2d  start,
GPnt2d  end 
)
static

Make line with two points.

Parameters
startthe start position.
endthe end position.
Returns
the line.
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.
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.