(input-shape-line-arc)= # Arc A real arc can also be created using a group of base points, in which case the straight type should be used. The arc type provides a parametric way to build this type of base line, then PreVABS will discretize it. There are several ways of defining an arc. ![fig-baselinearc](../../figures/baselinearc.png) ![fig-baselinearc2](../../figures/baselinearc2.png) - Use center, starting point, ending point and direction. - Use center, starting point, ending point and angle. - Use center, starting point, angle and direction. - Use starting point, ending point, and either `` or ``, with an optional `` to choose which side of the chord the arc bends toward. A zero curvature degenerates to a straight chord. Example inputs: ```xml ...
c
s e ccw 9
c
s a 10
s e r right ccw ...
``` **Specification** - `
`: Name of the center point. - ``: Name of the starting point. - ``: Name of the ending point. - ``: Direction of the circular arc. Choose from 'cw' (clockwise) and 'ccw' (counter-clockwise). Default is 'ccw'. - ``: Central angle of the arc. - `` / ``: Used together with `` and `` to size the arc; provide one or the other. - ``: `left` or `right` of the chord (`start`→`end`). Default is `right`. - ``: Number of discretization. If `by="angle"`, then new points are created every specified degrees of angle. If `by="number"`, then specified number of new points are created and evenly distributed on the arc. - Attributes - `by`: Choose one from `angle` and `number`. Default is `angle`. ## Circle Defining a circle is simpler than an arc. User only need to provide a center with radius or another point on the circle. The corresponding element tags are `
`, `` and ``. There are two ways of defining a circle: - Use center and radius. - Use center and a point on the circle. A sample input file demonstrating the two methods: ```xml ...
c
r
c
p cw
...
``` **Specification** - `
`: Name of the center point. - ``: Radius of the circle. - ``: Name of a point on the circle. - ``: Direction of the circle. Choose from `cw` (clockwise) and `ccw` (counter-clockwise). Default is `ccw`. - ``: Number of discretization (same semantics as for arcs).