## [cgkit-commits] cgkit2/doc/tex beziercurvegeom.tex,NONE,1.1 geomobject.tex,1.3,1.4

 [cgkit-commits] cgkit2/doc/tex beziercurvegeom.tex,NONE,1.1 geomobject.tex,1.3,1.4 From: Matthias Baas - 2005-08-28 19:47:31 Update of /cvsroot/cgkit/cgkit2/doc/tex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29322/doc/tex Modified Files: geomobject.tex Added Files: beziercurvegeom.tex Log Message: Updates --- NEW FILE: beziercurvegeom.tex --- % BezierCurveGeom \section{\class{BezierCurveGeom} --- Piecewise cubic Bezier curve} The \class{BezierCurveGeom} class represents a piecewise cubic curve in 3D space that is composed of an arbitrary number of cubic Bezier segments. The class stores a number of 3D points that are interpolated by the curve. Each point has an in tangent and an out tangent associated with it that define how the curve enters and leaves the point. \begin{classdesc}{BezierCurveGeom}{pnts=None, closed=False} \var{pnts} is a list of \class{BezierPoint} objects describing the points to interpolate and the in and out tangents. If \var{closed} is set to \code{True} the last point will be connected to the first point. \end{classdesc} A \class{BezierCurveGeom} has the following slots: \begin{tableiv}{l|l|c|l}{code}{Slot}{Type}{Access}{Description} \lineiv{pnts_slot}{[vec3]}{rw}{The curve points} \lineiv{intangents_slot}{[vec3]}{rw}{The in tangents} \lineiv{outtangents_slot}{[vec3]}{rw}{The out tangents} \end{tableiv} Index: geomobject.tex =================================================================== RCS file: /cvsroot/cgkit/cgkit2/doc/tex/geomobject.tex,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** geomobject.tex 31 Mar 2005 17:25:04 -0000 1.3 --- geomobject.tex 28 Aug 2005 19:47:19 -0000 1.4 *************** *** 43,46 **** --- 43,57 ---- \end{methoddesc} + \begin{methoddesc}{slotSizeConstraint}{storage} + Return a constraint object for primitive variable slots or None if the size + of the slot should be unconstrained. + This method is called when a new primitive variable is created. The + returned constraint object is used for the array slot that holds the + values of the variable. \var{storage} is the storage class of the new + variable which will be one of \code{UNIFORM}, \code{VARYING}, \code{VERTEX}, + \code{FACEVARYING} or \code{FACEVERTEX}. The method will never be called + when \code{CONSTANT} or \code{USER} variables are created. + \end{methoddesc} + \begin{methoddesc}{newVariable}{name, storage, type, multiplicity=1, user_n=0} Attaches a new primitive variable to the geometry. *************** *** 70,74 **** \begin{verbatim} ! >>> from cgkit import * >>> sg=SphereGeom() >>> sg.newVariable("foo", VARYING, INT, multiplicity=3) --- 81,85 ---- \begin{verbatim} ! >>> from cgkit.all import * >>> sg=SphereGeom() >>> sg.newVariable("foo", VARYING, INT, multiplicity=3) 

 [cgkit-commits] cgkit2/doc/tex beziercurvegeom.tex,NONE,1.1 geomobject.tex,1.3,1.4 From: Matthias Baas - 2005-08-28 19:47:31 Update of /cvsroot/cgkit/cgkit2/doc/tex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29322/doc/tex Modified Files: geomobject.tex Added Files: beziercurvegeom.tex Log Message: Updates --- NEW FILE: beziercurvegeom.tex --- % BezierCurveGeom \section{\class{BezierCurveGeom} --- Piecewise cubic Bezier curve} The \class{BezierCurveGeom} class represents a piecewise cubic curve in 3D space that is composed of an arbitrary number of cubic Bezier segments. The class stores a number of 3D points that are interpolated by the curve. Each point has an in tangent and an out tangent associated with it that define how the curve enters and leaves the point. \begin{classdesc}{BezierCurveGeom}{pnts=None, closed=False} \var{pnts} is a list of \class{BezierPoint} objects describing the points to interpolate and the in and out tangents. If \var{closed} is set to \code{True} the last point will be connected to the first point. \end{classdesc} A \class{BezierCurveGeom} has the following slots: \begin{tableiv}{l|l|c|l}{code}{Slot}{Type}{Access}{Description} \lineiv{pnts_slot}{[vec3]}{rw}{The curve points} \lineiv{intangents_slot}{[vec3]}{rw}{The in tangents} \lineiv{outtangents_slot}{[vec3]}{rw}{The out tangents} \end{tableiv} Index: geomobject.tex =================================================================== RCS file: /cvsroot/cgkit/cgkit2/doc/tex/geomobject.tex,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** geomobject.tex 31 Mar 2005 17:25:04 -0000 1.3 --- geomobject.tex 28 Aug 2005 19:47:19 -0000 1.4 *************** *** 43,46 **** --- 43,57 ---- \end{methoddesc} + \begin{methoddesc}{slotSizeConstraint}{storage} + Return a constraint object for primitive variable slots or None if the size + of the slot should be unconstrained. + This method is called when a new primitive variable is created. The + returned constraint object is used for the array slot that holds the + values of the variable. \var{storage} is the storage class of the new + variable which will be one of \code{UNIFORM}, \code{VARYING}, \code{VERTEX}, + \code{FACEVARYING} or \code{FACEVERTEX}. The method will never be called + when \code{CONSTANT} or \code{USER} variables are created. + \end{methoddesc} + \begin{methoddesc}{newVariable}{name, storage, type, multiplicity=1, user_n=0} Attaches a new primitive variable to the geometry. *************** *** 70,74 **** \begin{verbatim} ! >>> from cgkit import * >>> sg=SphereGeom() >>> sg.newVariable("foo", VARYING, INT, multiplicity=3) --- 81,85 ---- \begin{verbatim} ! >>> from cgkit.all import * >>> sg=SphereGeom() >>> sg.newVariable("foo", VARYING, INT, multiplicity=3)