Primitives

Some of the most commonly-used objects in pycad are listed here. For a more complete list see the full API documentation.


\begin{classdesc}{Point}{x1, x2, x3}
Create a point with from coordinates.
\end{classdesc}


\begin{classdesc}{Line}{point1, point2}
Create a line with between starting and ending points.
\end{classdesc}


\begin{classdesc}{Curve}{point1, point2, ...}
Create a \code{Curve}, which is simply a list of points.
\end{classdesc}


\begin{classdesc}{Spline}{curve}
Interpret a \code{Curve} using a spline.
\end{classdesc}


\begin{classdesc}{BSpline}{curve}
Interpret a \code{Curve} using a b-spline.
\end{classdesc}


\begin{classdesc}{BezierCurve}{curve}
Interpret a \code{Curve} using a Bezier curve.
\end{classdesc}


\begin{classdesc}{CurveLoop}{list}
Create a closed \code{Curve} connecting the lines and/or points given in the \code{list}.
\end{classdesc}


\begin{classdesc}{Arc}{center_point, start_point, end_point}
Create an arc by sp...
...d points. An arc may subtend an angle of at most $\pi$\ radians.
\end{classdesc}


\begin{classdesc}{PlaneSurface}{loop, \optional{holes=[list]}}
Create a surface for a 2-D mesh, which may have one or more holes.
\end{classdesc}


\begin{classdesc}{RuledSurface}{list}
Create a surface that can be interpolated using transfinite interpolation.
\end{classdesc}


\begin{classdesc}{SurfaceLoop}{list}
Create a loop of 2D primitives, which defines the shell of a volume.
\end{classdesc}


\begin{classdesc}{Volume}{loop, \optional{holes=[list]}}
Create a volume for a 3-D mesh given a SurfaceLoop, which may have one or more holes.
\end{classdesc}


\begin{classdesc}{PropertySet}{list}
Create a PropertySet given a list of 1-D, 2...
...items. See the section on Properties below for more information.
\end{classdesc}

esys@esscc.uq.edu.au