ParametricCurve
Create a parametric curve defined by coordinate expressions in 2D or 3D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"ParametricCurve");
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).importData();
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"ParametericCurve") to create a parametric curve. Self-intersecting curves are not supported, except the case of a closed curve (that is, when the start and end points coincide). The following properties are available:
Direction of the z-axis of the local coordinate system. Vector has length 3 if axistype is cartesian, and length 2 if axistype is spherical.
x | y | z | cartesian | spherical
String[2] | String[3]
true | false
on | off
all | obj | dom | bnd | edg | pnt | off
bnd in 2D; edg in 3D
Show selections, if selresult is on, in physics, materials, and so on; in part instances; or in 3D from a plane geometry. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
this | Part Instance feature
xyplane | Work plane feature
The expressions in coord can contain functions defined in the model. If the definition of such a function is changed, the parametric curve is not automatically rebuilt. Use model.component(<ctag>).geom(<tag>).feature(<ftag>).importData() to rebuild the parametric curve after such a change.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Example
The following commands create a parametric curve in 3D with the shape of a helix:
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1",3);
g.create("pc1","ParametricCurve");
g.feature("pc1").set("parmax","2*pi");
g.feature("pc1").set("coord",new String[]{"cos(s)","sin(s)","s*0.2"});
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',3);
g.create('pc1','ParametricCurve');
g.feature('pc1').set('parmax','2*pi');
g.feature('pc1').set('coord',{'cos(s)','sin(s)','s*0.2'});
g.run;
See Also
BezierPolygon, ParametricSurface