1 # Created by Octave 3.6.2, Sun Jun 10 09:53:43 2012 UTC <root@brouzouf>
13 # name: <cell-element>
17 -- Function File: POLYLINE = curve2polyline (CURVE)
18 -- Function File: POLYLINE = curve2polyline (...,PROPERTY,VALUE,...)
19 Adaptive sampling of a parametric curve.
21 The CURVE is described as a 2-by-N matrix. Rows correspond to the
22 polynomial (compatible with `polyval') describing the respective
23 component of the curve. The curve must be parametrized in the
24 interval [0,1]. The vertices of the polyline are accumulated in
25 regions of the curve where the curvature is higher.
29 Maximum number of vertices. Not used.
32 Tolerance for the error criteria. Default value `1e-4'.
35 Maximum number of iterations. Default value `10'.
40 See also: shape2polygon, curveval
46 # name: <cell-element>
50 Adaptive sampling of a parametric curve.
54 # name: <cell-element>
61 # name: <cell-element>
65 -- Function File: P = curveval (CURVE, T)
66 Evaluates parametric CURVE at T.
72 # name: <cell-element>
76 Evaluates parametric CURVE at T.
80 # name: <cell-element>
87 # name: <cell-element>
91 -- Function File: POLYGON = shape2polygon (SHAPE)
92 -- Function File: POLYGON = shape2polygon (...,PROPERTY,VALUE,...)
93 Transforms a 2D shape described by piecewise smooth polynomials
96 SHAPE is a n-by-1 cell where each element is a pair of polynomials
97 compatible with polyval. POLYGON is a k-by-2 matrix, where each
98 row represents a vertex. The property-value pairs are passed to
101 See also: polygon2shape, curve2poyline
107 # name: <cell-element>
111 Transforms a 2D shape described by piecewise smooth polynomials into a
116 # name: <cell-element>
123 # name: <cell-element>
127 -- Function File: A = shapearea (PP)
128 Calculate the area of a 2D shape defined with piecewise smooth
131 Shape is defined with piecewise smooth polynomials. PP is a cell
132 where each elements is a 2-by-(poly_degree+1) array containing a
135 `px(i,:) = pp{i}(1,:)' and `py(i,:) = pp{i}(2,:)'.
137 See also: shapecentroid, shape2polygon, shapeplot
143 # name: <cell-element>
147 Calculate the area of a 2D shape defined with piecewise smooth
152 # name: <cell-element>
159 # name: <cell-element>
163 -- Function File: CM = shapecentroid (PP)
164 Centroid of a simple plane shape defined with piecewise smooth
167 The shape is defined with piecewise smooth polynomials. PP is a
168 cell where each elements is a 2-by-(poly_degree+1) matrix
169 containing a pair of polynomials. `px(i,:) = pp{i}(1,:)' and
170 `py(i,:) = pp{i}(2,:)'.
172 The edges of the shape should not self-intersect. This function
173 does not check for the sanity of the shape.
175 See also: shapearea, shape2polygon
181 # name: <cell-element>
185 Centroid of a simple plane shape defined with piecewise smooth
190 # name: <cell-element>
197 # name: <cell-element>
201 -- Function File: H = shapeplot (SHAPE)
202 -- Function File: H = shapeplot (SHAPE, N)
203 -- Function File: H = shapeplot (..., PARAM, VALUE)
204 Pots a 2D shape defined by piecewise smooth polynomials in the
207 PP is a cell where each elements is a 2-by-(poly_degree+1) matrix
208 containing a pair of polynomials. N is the number of points to be
209 used in non-straight edges. Additional parameter value pairs are
210 passed to `drawPolygon'.
212 See also: drawPolygon, shape2polygon
218 # name: <cell-element>
222 Pots a 2D shape defined by piecewise smooth polynomials in the current
227 # name: <cell-element>
234 # name: <cell-element>
238 -- Function File: NSHAPE = shapetransform (SHAPE, T)
239 Applies transformation to a shape defined by piecewise smooth
242 SHAPE is a cell where each elements is a 2-by-(poly_degree+1)
243 matrix containing a pair of polynomials.
245 Format of T can be one of :
246 [c] , [a b] , [a b c] or [a b c]
247 [f] [d e] [d e f] [d e f]
250 See also: shape2polygon, shapeplot
256 # name: <cell-element>
260 Applies transformation to a shape defined by piecewise smooth