![]() Has parameters that control the appearance eg.servermanager.CreateRenderView() creates a render view suitable for the active connection type.Connecting to any other output port > shrink.Input = servermanager.OutputPort(inFilter, 1).Connecting to the first output port > shrink.Input = inFilter > shrink.Input = servermanager.OutputPort(inFilter, 0).List available filters > dir(servermanager.filters).Similar to creating sources, with required Input > shrink = (Input=sphere) > shrink.ShrinkFactor = 0.8 > repShrink = servermanager.CreateRepresentation(shrink, view) > view.StillRender().Filters are available in servermanager.filters sub-module.Parameter values can be specified when instantiating > sphere = (Radius=10.5, Center= ).Setting a new value > sphere.Radius = 10 > sphere.Center = 120.0333 > sphere.Center = > reprSphere.Representation = “Wireframe”.Getting the current value > param = sphere.Radius > center0 = sphere.Center.help(obj or class) can be used to obtain the list of available parameters.(See the Start Phi and End Phi properties.) The phi divisions are similar to latitude lines on the earth. PhiResolution The value of this property represents the number of divisions between Start Phi and End Phi on the sphere. EndTheta The value of this property can be adjusted to form only a portion of a sphere. EndPhi The value of this property can be adjusted to form only a portion of a sphere. Data descriptors defined here: Center This property specifies the 3D coordinates for the center of the sphere. The output of the Sphere source is polygonal data with point normals defined. Help() class SphereSource(SourceProxy) The Sphere source can be used to add a polygonal sphere to the 3D scene. ![]()
0 Comments
Leave a Reply. |