Glyph Version 7.22.2 Mode Types - - SurfaceFitter |
pw:: SurfaceFitterThe surface fitter mode type Derives FromNotesThis mode is used to create and fit database surface entities. To create a mode of this type, use the pw::Application.begin command with the mode SurfaceFit specified, like this: set fitter [pw::Application begin SurfaceFit] Summary
BoundaryTolerance
This attribute is the tolerance to use when splitting and joining the curves specified as the boundaries, for detecting end to end connections of the boundaries, and for creating the surface from the boundaries. TypeThis attribute is a float with the range (0, infinity). DefaultThe default for this attribute is the current fit tolerance based on the model size as returned by pw::Database.getFitTolerance. UseBoundaryTangency
This attribute controls whether tangency at boundaries should be used to build a surface. TypeThis attribute is a boolean. DefaultThe default for this attribute is false. TangencyEntities
This attribute is a list of database entities to limit which can provide tangency information when calling createSurfacesFromCurves or createPatch. TypeThis attribute is a list of pw::DatabaseEntity objects DefaultThe default for this attribute is an empty list, which means the tangency information will be used from any database entities that are associated with the curves and boundaries used to create surfaces. FitTolerance
This attribute is the tolerance to use when fitting surfaces to a cloud of points. TypeThis attribute is a float with the range (0, infinity). DefaultThe default for this attribute is the current fit tolerance based on the model size as returned by pw::Database.getFitTolerance. FitInteriorOnly
This attribute controls whether only the interior of a surface will be fitted. TypeThis attribute is a boolean. DefaultThe default for this attribute is false. FitEntitiesThreshold
This attribute specifies the percentage of length of the boundary curves of a created surface that must be database constrained to automatically set the fitting entities. TypeThis attribute is a float with the range [0, 1]. DefaultThe default for this attribute is 0 which means that no fit entities will be set when a surface is created. createSurfacesFromCurves
This action automatically creates new surfaces using the given curves as boundaries for Coons patches and trimmed planes. If the curve boundaries selected for a patch are coplanar, a trimmed plane will be constructed instead of a Coons patch. If the curves boundaries have a single tangent pspace entity, a tangent quilt will be untrimmmed using the curve boundaries. Parameters
ReturnsThis action returns a list of new pw::DatabaseEntity objects, which may include pw::Surface and pw::Quilt objects. Note that when creating a trimmed plane, several new entities will be created, but only the quilt will be returned. ExampleCode # Automatic selection of database entities See Alsopw::Database.createSurfacesFromCurves, which works similar to this action except that it does not allow as much control over the fitting process. createPatch
This action creates a single surface patch between the given rails. Each rail can be one or more curves and/or boundaries and do not necessarily need to match exactly end to end, but should come within the given tolerance of each other or intersect. If an empty list is passed in for a rail, it will be marked as a pole while creating the Coons patch. Parameters
ReturnsThis action returns a pw::Surface object. ExampleCode # Automatic selection of database entities classifySurface
This action classifies how a surface was created during the last call to createSurfacesFromCurves or createPatch. Parameters
ReturnsThis action returns a string with possible values TangencyPatch, CoonsPatch, TrimmedPatch and TrimmedPlane getCurveGapXYZs
This action gets a list of vectors that represents the locations of any gaps discovered during the last call to createSurfacesFromCurves or createPatch. ParametersThis action has no parameters. ReturnsThis action returns a list of vectors. getCurveGapSizes
This action gets a list of floats that represents the size of any gaps discovered during the last call to createSurfacesFromCurves or createPatch. ParametersThis action has no parameters. ReturnsThis action returns a list of floats. getFitEntities
This action gets the list of pw::DatabaseEntity objects that a surface created in this mode will be fitted to when the fitter runs. Parameters
ReturnsThis action returns a list of pw::DatabaseEntity objects. setFitEntities
This action sets the list of pw::DatabaseEntity objects that a surface created in this mode will be fitted to when the fitter runs. Parameters
ReturnsThis action returns nothing. ExampleCode set fitter [pw::Application begin SurfaceFit] run
This action runs the surface fitter. Parameters
ReturnsThis action returns nothing. InformationThis command supports progress updates. Unlike most commands that support progress updates, if the user aborts this command, instead of reverting to the previous state the entities being solved will be left as is. getCompletedSteps
This action returns the number of steps completed by the last call to run. ParametersThis action has no parameters. ReturnsThis action returns the integer number of steps completed. getIterationCount
This action gets the number of iterations of fitting for a particular surface created in this mode. Parameters
ReturnsThis action returns an integer. getRMSDistance
This action gets the RMS distance of the fit and point cloud for a particular surface created in this mode. Parameters
ReturnsThis action returns a <real>. getDimensions
This action gets the dimension of the control points of the particular surface created in this mode. Parameters
ReturnsThis action returns the domain dimensions as a two element integer list. getCloudSize
This action gets the size of the point cloud used in the fit of the particular surface created in this mode. Parameters
ReturnsThis action returns an integer. getStatus
This action gets the status of the fit for a particular surface created in this mode. Parameters
ReturnsThis action returns a string. |
This attribute is the tolerance to use when splitting and joining the curves specified as the boundaries, for detecting end to end connections of the boundaries, and for creating the surface from the boundaries.
$fitter get/setBoundaryTolerance tol
This attribute controls whether tangency at boundaries should be used to build a surface.
$fitter get/setUseBoundaryTangency useTangency
This attribute is a list of database entities to limit which can provide tangency information when calling createSurfacesFromCurves or createPatch.
$fitter get/setTangencyEntities db_list
This action automatically creates new surfaces using the given curves as boundaries for Coons patches and trimmed planes.
$fitter createSurfacesFromCurves curves
This action creates a single surface patch between the given rails.
$fitter createPatch ?-tolerance tol? ?-surfaceTolerance tol? ?-fitThreshhold threshold? ?-interior? rail1 rail2 rail3 rail4
This attribute is the tolerance to use when fitting surfaces to a cloud of points.
$fitter get/setFitTolerance tol
This attribute controls whether only the interior of a surface will be fitted.
$fitter get/setFitInteriorOnly interiorOnly
This attribute specifies the percentage of length of the boundary curves of a created surface that must be database constrained to automatically set the fitting entities.
$fitter get/setFitEntitiesThreshold tol
This action classifies how a surface was created during the last call to createSurfacesFromCurves or createPatch.
$fitter classifySurface surf
This action gets a list of vectors that represents the locations of any gaps discovered during the last call to createSurfacesFromCurves or createPatch.
$fitter getCurveGapXYZs
This action gets a list of floats that represents the size of any gaps discovered during the last call to createSurfacesFromCurves or createPatch.
$fitter getCurveGapSizes
This action gets the list of pw::DatabaseEntity objects that a surface created in this mode will be fitted to when the fitter runs.
$fitter getFitEntities surf
This action sets the list of pw::DatabaseEntity objects that a surface created in this mode will be fitted to when the fitter runs.
$fitter setFitEntities surf entities
This action runs the surface fitter.
$fitter run ?steps?
This action returns the number of steps completed by the last call to run.
$solver getCompletedSteps
This action gets the number of iterations of fitting for a particular surface created in this mode.
$fitter getIterationCount surf
This action gets the RMS distance of the fit and point cloud for a particular surface created in this mode.
$fitter getRMSDistance surf
This action gets the dimension of the control points of the particular surface created in this mode.
$fitter getDimensions surf
This action gets the size of the point cloud used in the fit of the particular surface created in this mode.
$fitter getCloudSize surf
This action gets the status of the fit for a particular surface created in this mode.
$fitter getStatus surf
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?
This action gets the fit tolerance for database operations.
pw::Database getFitTolerance
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