Circle¶
The CIRCLE entity (DXF Reference) defined by the DXF attributes dxf.center
and dxf.radius
. The CIRCLE entity has OCS coordinates.
See also
Subclass of |
|
DXF type |
|
Factory function |
|
Inherited DXF attributes |
Warning
Do not instantiate entity classes by yourself - always use the provided factory functions!
- class ezdxf.entities.Circle¶
-
- dxf.radius¶
Radius of circle (float)
- vertices(angles: Iterable[float]) Iterator[Vec3] ¶
Yields the vertices of the circle of all given angles as
Vec3
instances in WCS.- Parameters:
angles – iterable of angles in OCS as degrees, angle goes counter-clockwise around the extrusion vector, and the OCS x-axis defines 0-degree.
- flattening(sagitta: float) Iterator[Vec3] ¶
Approximate the circle by vertices in WCS as
Vec3
instances. The argument sagitta is the maximum distance from the center of an arc segment to the center of its chord. Yields a closed polygon where the start vertex is equal to the end vertex!
- transform(m: Matrix44) Circle ¶
Transform the CIRCLE entity by transformation matrix m inplace. Raises
NonUniformScalingError()
for non-uniform scaling.
- translate(dx: float, dy: float, dz: float) Circle ¶
Optimized CIRCLE/ARC translation about dx in x-axis, dy in y-axis and dz in z-axis, returns self (floating interface).