ParametricSurface
Create a parametric surface defined by coordinate expressions in 3D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"ParametricSurface");
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>,"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
none | custom | integer between 1 and the number of colors in the current theme
The color to use. Active when color is set to custom.
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.
this | Part Instance feature
xyplane | Work plane feature
Work Plane feature that defines the coordinate system. The default, xyplane, is the global Cartesian coordinate system.
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.component(<ctag>).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");
model.component().create("comp1");
GeomSequence g = model.component("comp1").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');
model.component.create('comp1');
g = model.component('comp1').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