This PR add support for creating arcs and circles with commands below:
add_arc(sketch_name, p1, p2, angle, transform): Adds an arc to the given sketch.
sketch_name: is the string name of the sketch returned by add_sketch()
p1: Start point of the arc. Passed in sketch space 2D coords of the line in a dict e.g. {"x": 0, "y": 0} or 3D coords if transform="world" is specified, indicating use of world coords.
p2: Center point of the arc. Passed in sketch space 2D coords of the line in a dict e.g. {"x": 0, "y": 0} or 3D coords if transform="world" is specified, indicating use of world coords.
angle: The sweep angle of the arc. This is defined in degrees with a positive value creating a counter-clockwise sweep.
transform (optional): the transform for the sketch (necessary if you are replaying json data exported from Fusion) or a string world denoting use of world coordinates.
Returns the sketch profiles or an empty dict if there are no profiles. Note that profile uuid returned is only valid while the design does not change.
add_circle(sketch_name, p, radius, transform): Adds a circle to the given sketch.
sketch_name: is the string name of the sketch returned by add_sketch()
p: Center point of the circle. Passed in sketch space 2D coords of the line in a dict e.g. {"x": 0, "y": 0} or 3D coords if transform="world" is specified, indicating use of world coords.
radius: The radius of the circle.
transform (optional): the transform for the sketch (necessary if you are replaying json data exported from Fusion) or a string world denoting use of world coordinates.
Returns the sketch profiles or an empty dict if there are no profiles. Note that profile uuid returned is only valid while the design does not change.
This PR add support for creating arcs and circles with commands below:
add_arc(sketch_name, p1, p2, angle, transform)
: Adds an arc to the given sketch.sketch_name
: is the string name of the sketch returned byadd_sketch()
p1
: Start point of the arc. Passed in sketch space 2D coords of the line in a dict e.g.{"x": 0, "y": 0}
or 3D coords iftransform="world"
is specified, indicating use of world coords.p2
: Center point of the arc. Passed in sketch space 2D coords of the line in a dict e.g.{"x": 0, "y": 0}
or 3D coords iftransform="world"
is specified, indicating use of world coords.angle
: The sweep angle of the arc. This is defined in degrees with a positive value creating a counter-clockwise sweep.transform
(optional): the transform for the sketch (necessary if you are replaying json data exported from Fusion) or a stringworld
denoting use of world coordinates.add_circle(sketch_name, p, radius, transform)
: Adds a circle to the given sketch.sketch_name
: is the string name of the sketch returned byadd_sketch()
p
: Center point of the circle. Passed in sketch space 2D coords of the line in a dict e.g.{"x": 0, "y": 0}
or 3D coords iftransform="world"
is specified, indicating use of world coords.radius
: The radius of the circle.transform
(optional): the transform for the sketch (necessary if you are replaying json data exported from Fusion) or a stringworld
denoting use of world coordinates.