Circle¶
CIRCLE (DXF Reference) center at location dxf.center
and radius of dxf.radius
.
Subclass of | ezdxf.entities.DXFGraphic |
DXF type | 'CIRCLE' |
Factory function | ezdxf.layouts.BaseLayout.add_circle() |
Inherited DXF attributes | Common graphical 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]) → Iterable[ezdxf.math._vector.Vec3]¶ Yields vertices of the circle for iterable angles in WCS.
Parameters: angles – iterable of angles in OCS as degrees, angle goes counter clockwise around the extrusion vector, OCS x-axis = 0 deg.
-
flattening
(sagitta: float) → Iterable[ezdxf.math._vector.Vec3]¶ Approximate the circle by vertices in WCS, argument sagitta is the max. distance from the center of an arc segment to the center of its chord. Returns a closed polygon: start vertex == end vertex!
Yields always
Vec3
objects.New in version 0.15.
-
transform
(m: ezdxf.math._matrix44.Matrix44) → ezdxf.entities.circle.Circle¶ Transform the CIRCLE entity by transformation matrix m inplace.
Raises
NonUniformScalingError()
for non uniform scaling.
-
translate
(dx: float, dy: float, dz: float) → ezdxf.entities.circle.Circle¶ Optimized CIRCLE/ARC translation about dx in x-axis, dy in y-axis and dz in z-axis, returns self (floating interface).
-