Geometry > Geometry Commands > ParametricSurface

ParametricSurface
Create a parametric surface defined by coordinate expressions in 3D.
Syntax
model.geom(<tag>).create(<ftag>,"ParametricSurface");
model.geom(<tag>).feature(<ftag>).set(property,<value>);
model.geom(<tag>).feature(<ftag>).getType(property);
model.geom(<tag>).feature(<ftag>).importData();
Description
Use model.geom(<tag>).create(<ftag>,"ParametericSurface") to create a parametric surface. Self-intersecting surfaces are not supported. 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
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections, if selresult is on, of resulting objects in physics, materials, and so on, or in part instances. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
The expressions in coord can contain functions defined in the model. If the definition of such a function is changed, the parametric surface is not automatically rebuilt. Use model.geom(<tag>).feature(<ftag>).importData() to rebuild the parametric surface after such a change.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Example
The following commands create a parametric surface in 3D with the shape of a twisted rectangle:
Code for use with Java
Model model = ModelUtil.create("Model1");
GeomSequence g = model.geom().create("geom1",3);
g.create("ps1","ParametricSurface");
g.feature("ps1").set("parmin1","-1");
g.feature("ps1").set("parmax2","pi");
g.feature("ps1").set("coord",new String[]{"s1*cos(s2)","s1*sin(s2)","s2"});
g.run();
Code for use with MATLAB
model = ModelUtil.create('Model1');
g = model.geom.create('geom1',3);
g.create('ps1','ParametricSurface');
g.feature('ps1').set('parmin1','-1');
g.feature('ps1').set('parmax2','pi');
g.feature('ps1').set('coord',{'s1*cos(s2)','s1*sin(s2)','s2'});
g.run;
See Also
ParametricCurve