This class wraps the G2 and G3 g-codes which provide the printer track of circle.
More...
|
static GCodeCircle | getCircleByRadius (double axisAngle, double radius, bool isClockwise=true, double? speed=null, double? extrude=null) |
| Returns a printer track of specified circle. The circle path is defined by using a line. The start point of the line is the current position of printer head (use the GCodeLine class to define it). The line is defined by angle with horizontal axis and length of line (2x radius). More...
|
|
static void | Arc (GCodeCollector code, double centerX, double centerY, double radius, double startDegree, double stopDegree, double? speed=null, bool needExtrude=false, bool isClockwise=true) |
| Add a curve to the input GCodeCollector; More...
|
|
static void | ArcByPoints (GCodeCollector code, double startX, double startY, double stopX, double stopY, double radius, double? speed=null, bool needExtrude=false, bool isClockwise=true) |
|
This class wraps the G2 and G3 g-codes which provide the printer track of circle.
◆ GCodeCircle()
GCodeAPI.GCodeCircle.GCodeCircle |
( |
double |
i, |
|
|
double |
j, |
|
|
double? |
x = null , |
|
|
double? |
y = null , |
|
|
double? |
f = null , |
|
|
double? |
e = null , |
|
|
bool |
isClockwise = true |
|
) |
| |
Default constructor (http://reprap.org/wiki/G-code#G2_.26_G3:_Controlled_Arc_Move)
- Parameters
-
f | The feed-rate per minute of the move between the starting point and ending point |
x | The position to move to on the X axis |
y | The position to move to on the Y axis |
i | The point in X space from the current X position to maintain a constant distance from |
j | The point in Y space from the current Y position to maintain a constant distance from |
e | The amount to extrude between the starting point and ending point |
isClockwise | direction (Clockwise G2, Counter-Clockwise G3) |
◆ Arc()
static void GCodeAPI.GCodeCircle.Arc |
( |
GCodeCollector |
code, |
|
|
double |
centerX, |
|
|
double |
centerY, |
|
|
double |
radius, |
|
|
double |
startDegree, |
|
|
double |
stopDegree, |
|
|
double? |
speed = null , |
|
|
bool |
needExtrude = false , |
|
|
bool |
isClockwise = true |
|
) |
| |
|
static |
Add a curve to the input GCodeCollector;
- Parameters
-
code | input GCodeCollector |
centerX | center X of curve |
centerY | center y of curve |
radius | radius of curve |
startDegree | start degree of curve |
stopDegree | start degree of curve |
speed | The feed-rate per minute of the move between the starting point and ending point |
needExtrude | set true for extruding |
◆ Duplicate()
IGCode GCodeAPI.GCodeCircle.Duplicate |
( |
| ) |
|
◆ getCircleByRadius()
static GCodeCircle GCodeAPI.GCodeCircle.getCircleByRadius |
( |
double |
axisAngle, |
|
|
double |
radius, |
|
|
bool |
isClockwise = true , |
|
|
double? |
speed = null , |
|
|
double? |
extrude = null |
|
) |
| |
|
static |
Returns a printer track of specified circle. The circle path is defined by using a line. The start point of the line is the current position of printer head (use the GCodeLine class to define it). The line is defined by angle with horizontal axis and length of line (2x radius).
- Parameters
-
axisAngle | angle with horizontal axis |
radius | radius of circle |
isClockwise | direction (Clockwise G2, Counter-Clockwise G3) |
speed | The feed-rate per minute of the move between the starting point and ending point |
extrude | The amount to extrude between the starting point and ending point |
- Returns
◆ ToString()
override string GCodeAPI.GCodeCircle.ToString |
( |
| ) |
|
Returns the g-code string.
- Returns
◆ Bound
Rect GCodeAPI.GCodeCircle.Bound |
|
get |
Returns this circle's bounding rectangle.
◆ Name
string GCodeAPI.GCodeCircle.Name |
|
get |
The documentation for this class was generated from the following file:
- E:/projects/biofiz/programs/PetriPrinter/git/gCodeAPI/GCodeCircle.cs