Glyph Version 7.22.2 |
pw:: SurfaceDatabase surface type Derives Frompw::Object pw::Entity pw::DatabaseEntity Summary
create
This action creates a new surface object. Parametersnone ReturnsThis action returns a new pw::Surface object. createFromCurves
This action automatically creates new surfaces using the given curves as boundaries for Coons patches. Parameters
ReturnsThis action returns a list of new pw::Surface objects. See Alsopw::Database.createSurfacesFromCurves, which works similar to this action except that it makes trimmed planes instead of Coons patches when the input curves are planar. pw::Surface.interpolate and pw::Surface.patch also create Coons patches with more explicit control over the boundary curves. join
This action joins as many of the given surfaces together as possible. Parameters
ReturnsThis action returns a list of the pw::Surface objects that were joined. InformationThis command supports progress updates. getPosition
This action gets the position in the defining space of the surface at the given parameter. Parameters
ReturnsThis action returns a point giving the position on the surface (may be in the form “u v dbentity”). getXYZ
This action gets the position of the surface in model space at the given parameter. Parameters
ReturnsThis action returns an XYZ vector. getBoundary
This action gets a surface boundary. Parameters
ReturnsThis action returns a boundary. InformationThe boundary index 1 corresponds to VMinimum, 2 corresponds to UMaximum, 3 corresponds to VMaximum and 4 corresponds to UMinimum. getInteriorCurves
This action gets all the curves that are at least partially on the surface. Curves along the boundary of the surface will be returned as well, but this function uses the name “interior” to differentiate from the boundary curves that are returned by getBoundary ParametersThis action has no parameters. ReturnsThis action returns a list of pw::Curve objects. sweep
This action sets the surface by sweeping a curve by a vector. Parameters
ReturnsThis action returns nothing. interpolate
This action sets the surface by interpolating between the given curves. If two curves are given a ruled surface is created. If four curves are given a Coons patch is created with rail1 specifying the minimum u border and the rest of the rails arranged based on their ends being within the given tolerance, and the -orient flag is ignored. Parameters
ReturnsThis action returns nothing. patch
This action sets the surface by creating a patch between the given rails. The rails can be one or more curves and borders and do not necessarily need to match exactly end to end, but should come within the given tolerance of each other or intersect. Parameter
ReturnsThis action returns nothing. ExamplesCode # Simple coons surface w/ 4 curves fillet
This action sets the surface by connecting two curves using a polyconic. Parameters
ReturnsThis action returns nothing. revolve
This action sets the surface by revolving a curve around another curve or axis. Parameters
ReturnsThis action returns nothing. spline
This action sets this surface to a smooth interpolation of the control points of the given surface. Parameters
ReturnsThis action returns nothing. fitLSQ
This action sets this surface to a least squares fit approximation of the given entities. Parameters
ReturnsThis action returns nothing. InformationAs a first step to fitting, the surface’s control points will be projected in the direction of the surface normal at that location in both directions on to the given dbentities. This will inform the fitting routine what will be fitted to. Because of this, even if an entity is given in the dbentities list ExampleCode set b1 [create2PtCurve {70 0 0} {75 0 5}] split
This action splits the surface in the given direction at a given parameter value. Parameters
ReturnsThis action returns a list of the new pw::Surface objects. InformationAny duplicate parameters will be ignored, as will parameters at the limits of the surface. setOrientation
This action sets the orientation of this surface by specifying the umin and vmin edges of the surface. Parameters
ReturnsThis action returns nothing. InformationFor both the u_egde and v_edge the following boundary keywords or the associated index may be used: VMinimum = 1, UMaximum = 2, VMaximum = 3, UMinimum = 4. alignOrientation
This action aligns the UV orientation of the given surfaces with this surface. If any surfaces in the given list are not connected within the given tolerance to this surface, they will be ignored. Parameters
ReturnsThis action returns nothing. isClosed
This action checks if the surface is closed in the given direction. Parameters
ReturnsThis action returns a boolean, which is true if the surface is closed in the given direction. isPole
This action checks if the surface Edge is a pole. Parameters
ReturnsThis action returns a boolean, which is true if the given surface Edge is a pole. getDiscontinuities
This action returns a list of parameters in the given direction at discontinuites with a bend angle greater than the given angle. Parameters
ReturnsThis action returns a list of parameters at discontinuities. getXYZsAtParameter
This action gets a list of points along a constant parameter of a surface suitable for rendering. Parameters
ReturnsThis action returns a list of the xyz points. getXYZsAtIntervals
This action gets a list of points along the U- and V-intervals. Parameters
ReturnsThis action returns xyz points representing constant U- and V-parameter lines at the surface’s intervals. The result will be a list of lines, with each line specified as a list of XYZ vector values. The number of lines will be equal to the number of U- and V-intervals (ie, the sum of the values returned in dimensionVar). The U-interval lines will be listed first, followed by the V-interval lines. getIntervalParameters
This action gets the list of interval parameters in the U or V direction on a surface. Parameters
ReturnsThis action returns a list of parameters for the specified direction. |
This action creates a new surface object.
pw::Surface create
This action automatically creates new surfaces using the given curves as boundaries for Coons patches.
pw::Surface createFromCurves ?-tolerance tol? curves
This action joins as many of the given surfaces together as possible.
pw::Surface join ?-reject rejectVar? ?-tolerance tol? surfs
This action gets the position in the defining space of the surface at the given parameter.
$surface getPosition ?-parameter? value
This action gets the position of the surface in model space at the given parameter.
$surface getXYZ ?-parameter? value
This action gets the number of boundaries of the surface.
$surface getBoundaryCount
This action gets a surface boundary.
$surface getBoundary < index | boundary >
This action gets a surface boundary list.
$surface getBoundaries
This action gets all the curves that are at least partially on the surface.
$surface getInteriorCurves
This action sets the surface to the initial cleared state.
$surface clear
This action sets the surface by sweeping a curve by a vector.
$surface sweep ?-reverse? generatrix vector
This action sets the surface by interpolating between the given curves.
$surface interpolate ?-orient < Same | Opposite | Best >? ?-tolerance tol? rail1 rail2 ?rail3 rail4?
This action sets the surface by creating a patch between the given rails.
$surface patch ?-tolerance tol? ?-surfaceTolerance tol? ?-fitTolerance tol? ?-fitInterior threshold? ?-fitEntities entities? ?-fitted fittedVar? rail1 rail2 rail3 rail4
This action sets the surface by connecting two curves using a polyconic.
$surface fillet ?-rho rho? ?-tolerance tol? rail1 rail2 intersection ?spine?
This action sets the surface by revolving a curve around another curve or axis.
$surface revolve ?-angle revolve? ?-tolerance tol? generatrix < axis | point normal >
This action sets this surface to a smooth interpolation of the control points of the given surface.
$surface spline ?surface?
This action sets this surface to a least squares fit approximation of the given entities.
$surface fitLSQ ?-tolerance tol? ?-interior? ?entities?
This action splits the surface in the given direction at a given parameter value.
$surface split ?< -U | -V >? parameters
This action sets the orientation of this surface by specifying the umin and vmin edges of the surface.
$surf setOrientation u_edge v_edge
This action aligns the UV orientation of the given surfaces with this surface.
$surf alignOrientation ?-tolerance tol? surfaces
This action checks if the surface is closed in the given direction.
$surface isClosed ?< -U | -V >?
This action checks if the surface Edge is a pole.
$surface isPole ?< -UMin | -UMax | -VMin | -Vmax >?
This action returns a list of parameters in the given direction at discontinuites with a bend angle greater than the given angle.
$surface getDiscontinuities ?< -U | -V >? ?angle?
This action gets a list of points along a constant parameter of a surface suitable for rendering.
$surface getXYZsAtParameter ?< -U | -V >? parameter
This action gets a list of points along the U- and V-intervals.
$surface getXYZsAtIntervals ?dimensionVar?
This action gets the list of interval parameters in the U or V direction on a surface.
$surface getIntervalParameters ?< -U | -V >
This action automatically creates new surfaces using the given curves as boundaries for Coons patches and trimmed planes.
pw::Database createSurfacesFromCurves ?-tolerance tol? ?-surfaceTolerance tol? ?-fitTolerance tol? ?-fitInterior threshold? ?-fitEntities entities? ?-fittedSurfaces fittedVar? curves