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}{x=0.,y=0.,z=0.\optional{,local_scale=1.}}
Create a poin...
...m coordinates with local characteristic length \var{local_scale}
\end{classdesc}


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

\begin{methoddesc}[Line]{setElementDistribution}{n\optional{,progression=1\optio...
...} is set
progression is applied towards the center of the line.
\end{methoddesc}

\begin{methoddesc}[Line]{resetElementDistribution}{}
removes a previously set element distribution from the line.
\end{methoddesc}

\begin{methoddesc}[Line]{getElemenofDistribution}{}
Returns the element distribu...
... bump flag. If
no element distribution is set None is returned.
\end{methoddesc}


\begin{classdesc}{Spline}{point0, point1, ...}
A spline curve defined by a list of points \var{point0}, \var{point1},....
\end{classdesc}

\begin{methoddesc}[Spline]{setElementDistribution}{n\optional{,progression=1\opt...
...} is set
progression is applied towards the center of the line.
\end{methoddesc}

\begin{methoddesc}[Spline]{resetElementDistribution}{}
removes a previously set element distribution from the line.
\end{methoddesc}

\begin{methoddesc}[Spline]{getElemenofDistribution}{}
Returns the element distri...
... bump flag. If
no element distribution is set None is returned.
\end{methoddesc}


\begin{classdesc}{BSpline}{point0, point1, ...}
A B-spline curve defined by a list of points \var{point0}, \var{point1},....
\end{classdesc}

\begin{methoddesc}[BSpline]{setElementDistribution}{n\optional{,progression=1\op...
...} is set
progression is applied towards the center of the line.
\end{methoddesc}

\begin{methoddesc}[BSpline]{resetElementDistribution}{}
removes a previously set element distribution from the line.
\end{methoddesc}

\begin{methoddesc}[BSpline]{getElemenofDistribution}{}
Returns the element distr...
... bump flag. If
no element distribution is set None is returned.
\end{methoddesc}


\begin{classdesc}{BezierCurve}{point0, point1, ...}
A Brezier spline curve defined by a list of points \var{point0}, \var{point1},....
\end{classdesc}

\begin{methoddesc}[BezierCurve]{setElementDistribution}{n\optional{,progression=...
...} is set
progression is applied towards the center of the line.
\end{methoddesc}

\begin{methoddesc}[BezierCurve]{resetElementDistribution}{}
removes a previously set element distribution from the line.
\end{methoddesc}

\begin{methoddesc}[BezierCurve]{getElemenofDistribution}{}
Returns the element d...
... bump flag. If
no element distribution is set None is returned.
\end{methoddesc}


\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{methoddesc}[Arc]{setElementDistribution}{n\optional{,progression=1\option...
...} is set
progression is applied towards the center of the line.
\end{methoddesc}

\begin{methoddesc}[Arc]{resetElementDistribution}{}
removes a previously set element distribution from the line.
\end{methoddesc}

\begin{methoddesc}[Arc]{getElemenofDistribution}{}
Returns the element distribut...
... bump flag. If
no element distribution is set None is returned.
\end{methoddesc}


\begin{classdesc}{CurveLoop}{list}
Create a closed curve from the \code{list}. o...
...ss{Arc}, \class{Spline}, \class{BSpline},
\class{BrezierSpline}.
\end{classdesc}


\begin{classdesc}{PlaneSurface}{loop, \optional{holes=[list]}}
Create a plane su...
... one or more holes
described by \var{list} of \class{CurveLoop}.
\end{classdesc}

\begin{methoddesc}[PlaneSurface]{setRecombination}{max_deviation}
the mesh gener...
...e.
Set \var{max_deviation}=\var{None} to remove recombination.
\end{methoddesc}

\begin{methoddesc}[PlaneSurface]{setTransfiniteMeshing}{\optional{orientation=''...
...s uses the same element distribution. No holes must be present.
\end{methoddesc}


\begin{classdesc}{RuledSurface}{list}
Create a surface that can be interpolated ...
...ist of three or four lines defining the boundary of the
surface.
\end{classdesc}

\begin{methoddesc}[RuledSurface]{setRecombination}{max_deviation}
the mesh gener...
...e.
Set \var{max_deviation}=\var{None} to remove recombination.
\end{methoddesc}

\begin{methoddesc}[RuledSurface]{setTransfiniteMeshing}{\optional{orientation=''...
...s uses the same element distribution. No holes must be present.
\end{methoddesc}


\begin{classdesc}{SurfaceLoop}{list}
Create a loop of \class{PlaneSurface} or \class{RuledSurface}, which defines the shell of a volume.
\end{classdesc}


\begin{classdesc}{Volume}{loop, \optional{holes=[list]}}
Create a volume given a...
...ave one or more holes
define by the list of \class{SurfaceLoop}.
\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