Glyph Version 7.22.2 |
pw:: ConnectorA connector is a computationally one-dimensional grid entity, defined in the parameter space of one or more end-connected curve segments. Derives Frompw::Object pw::Entity pw::GridEntity Summary
create
This action creates a new connector object. ParametersThis action has no parameters. ReturnsThis action returns a new pw::Connector object. See AlsocreateFromPoints, createOnDatabase, createPeriodic ExampleThis example shows how to create a connector with two conic segments that has an average spacing already set. The name and dimension of the connector are outputted to the messages window. Code pw::Connector setCalculateDimensionMethod Spacing Output con-1 has dimension of 159. createOnDatabase
This action creates new connector objects on the given database entities. Parameters
ReturnsThis action returns a list of new pw::Connector objects. InformationThis command supports progress updates. See Alsocreate, createFromPoints, createPeriodic ExampleThis example shows how to create connectors from database entities. The -joinConnectors parameter is used to join connectors with a turning angle of less than 60 degrees. The distribution of each connector created is then changed to Tanh. Code pw::Connector setDefault Dimension 15 createFromPoints
This action, given a list of XYZ vector values or database-constrained points, creates a new connector. Parameters
NoteIf the set of points defines an existing connector, no new connector will be created, and the existing connector will be returned instead. ReturnsThis action returns the newly created pw::Connector (or the pre-existing connector if this would otherwise define a duplicate connector). See Alsocreate, createOnDatabase, createPeriodic ExampleThis example creates a connector from a list of xyz vector values. Code package require PWI_Glyph 3.18.3 Output PointCount 7 join (static)
This action joins as many of the given connectors together as possible. Parameters
NoteIf none of the above flags is present, all break points will be removed from the connectors and their distribution functions will be set to the default. ReturnsThis action returns a list of the pw::Connector objects that were joined. InformationThis command supports progress updates. See AlsoExampleThis example shows how to join multiple connectors at once but keep the distribution settings by adding break points. The reject parameter is used to find which connectors were not joined. $con(1), $con(2) and $con(3) are referencing existing connectors. Code pw::Connector join -keepDistribution -reject rj \ Output con-3 getBestSegment
This action, given two point-lists, returns a segment type, a start point, an end point, and a ProjectToCommon state that represent the best segment for a connector between the given points. Parameters
ReturnsThis action returns a segment type string with options < SegmentCircle | SegmentConic | SegmentSpline | SegmentSurfaceSpline | SegmentTrim >. ExampleThis example shows how to find the best segment between two end points. $con(1) and $con(2) are referencing existing connectors. Code puts [pw::Connector getBestSegment -start st -end en \ Output pw::SegmentSpline getConnectorsFromNode
This action gets a list of all connectors using the specified node. Parameters
ReturnsThis action returns a list of pw::Connector objects. ExampleThis example shows how to get a list of all connectors using the given node. $con(1) is referencing an existing connector. Code set node [$con(1) getNode End] Output con-1 getConnectorsFromSpacing
This action gets a list of all connectors using the specified spacing object. Parameters
ReturnsThis action returns a list of pw::Connector objects by default. If the -details parameter is present, the return value will be a list of entries with three values each. Each entry will contain the pw::Connector, the sub-connector integer index, and the side (a string value with options < Begin | End >) to indicate exactly where the spacing was used. Regardless of the presence of the -details flag, only connectors in the active framework are returned unless the -global flag is used. See Alsopw::SpacingExplicit.create, pw::Spacing.createNamedValue, pw::Framework ExampleThis example shows how to get a list of all connectors using the given spacing. $con(1) is referencing an existing connector. Code set spacing [[$con(1) getDistribution 1] getBeginSpacing] Output con-1 sub-connector 1 Begin getAdjacentConnectors
This action finds the connectors adjacent to the given list of connectors. Parameters
ReturnsThis action returns a list of adjacent pw::Connector objects. InformationThe returned list will not include any connectors specified in the original connectors list. ExampleThis example shows how to get a list of all adjacent connectors using the given connector. Any connectors returned will have less than a 90 degree bend angle with the given connector. $con(2) is referencing an existing connector. Code foreach cnctr [pw::Connector getAdjacentConnectors \ Output con-3 getConnectorsInPlane
This action looks for connectors in a plane, with the candidate connectors given explicitly or implicitly from the given entities. Parameters
ReturnsThis action returns a list of pw::Connector object. doConnectorsGetDimension
This action checks if connectors will have a dimension after being created and the calculateDimension method called on them, based on the current settings. ParametersThis action has no parameters. ReturnsThis action returns a boolean. See AlsocalculateDimension, Dimension (Default) ExampleThis example shows how to check to see if newly created connectors will be dimensioned if calculateDimension is called on them. For this example, no defaults had been set, so it returns false. Code puts [pw::Connector doConnectorsGetDimension] Output 0 getInvalidDistributions
This action finds connectors that have invalid distributions. Parameters
ReturnsThis action returns a list of pw::Connector with invalid distributions. InformationConnector distributions are not validated until the connector is queried for data. ExampleThis example shows how to check for connectors with invalid distributions. For this example, there were no invalid distributions. Code puts [pw::Connector getInvalidDistributions] Output (empty string) setDimensionFromSizeField
This action modifies the distribution and dimension of a list of pw::Connector objects based on the current size field. Parameters
ReturnsThis action returns nothing. See AlsosetDimension, calculateDimension, increaseDimension, setDimensionFromSpacing, setDimensionFromDistribution, setDimensionFromSubConnectors synchronizeSpacings
This action synchronizes spacing constraints at shared connector grid points. Optionally, it will redistribute and redimension connectors in order to create a smooth surface mesh. Parameters
InformationThis command supports progress updates. ReturnsThis action returns the list of pw::Connector objects that were synchronized. applyTRex (static)
This action will create (if not specified) and apply T-Rex boundary conditions to the unstructured domains that use the given connectors. If a connector is shared with a structured domain, the AdjacentGrid bc will be applied to the unstructured domains that use that connector. If a boundary condition is not specified, the default T-Rex boundary condition Type along with the corresponding default value will be applied. Parameters
InformationThis command supports progress updates. ReturnsList of T-Rex boundary conditions that have been created and assigned. See Alsopw::TRexCondition, pw::TRexCondition.ConditionType, applyTRex swapDistribution
This action replaces the distribution function of a list of subconnectors, retaining the previously set spacings. Parameters
ReturnsThis action returns nothing. See AlsogetDistribution, setDistribution, replaceDistribution, pw::Distribution ExampleThis example shows how to replace the distribution of the second subconnector of one connector and the single subconnector of a second connector with a distribution of type pw::DistributionAutomatic. Any previously set spacings will be retained. $con(1) and $con(3) reference existing connectors. Code pw::Connector swapDistribution Automatic \ Dimension (Default)
This default is the dimension of a connector when it is created. TypeAn integer with the value zero or in the range [2, infinity). Zero is no dimension. DefaultThe default value is 0. ExampleThis example shows how to set and get the default dimension for connectors created within a script. Code pw::Connector setDefault Dimension 20 Output 20 DistributionType (Default)
This default is the distribution of a subconnector when it is created. TypeThis default is a string with options < Tanh | MRQS | Geometric | Shape | Growth | Automatic >. DefaultThe default value is Tanh. ExampleThis example shows how to set and get the default distribution for subconnectors created within a script. Code pw::Connector setDefault DistributionType Geometric Output Geometric BeginSpacing (Default)
This default is the beginning spacing of a subconnector when it is created. TypeA float in the range [0.0, infinity). DefaultThe default value is 0.0. See Alsopw::Distribution.setBeginSpacing ExampleThis example shows how to set and get the default beginning spacing for subconnectors created within a script. Code pw::Connector setDefault BeginSpacing .01 Output 0.01 EndSpacing (Default)
This default is the ending spacing of a subconnector when it is created. TypeA float in the range [0.0, infinity). DefaultThe default value is 0.0. See Alsopw::Distribution.setEndSpacing ExampleThis example shows how to set and get the default ending spacing for subconnectors created within a script. Code pw::Connector setDefault EndSpacing .1 Output 0.1 CalculateDimensionMethod
This attribute is the dimension of a connector when it is created implicitly or when the calculateDimension action is called. TypeA string with options < Explicit | Spacing >. DefaultThe default for this attribute is Explicit. InformationWhen a connector is created its dimension is always set to the Dimension (Default). When the calculateDimension action is called, the dimension will be altered using this method. Explicit means to leave the dimension as is. Spacing means to calculate the dimension using the CalculateDimensionSpacing attribute. In the case of the createOnDatabase actions, the calculateDimension action is implicitly called after each connector has been created. See Alsocreate, createFromPoints, createPeriodic, createOnDatabase, CalculateDimensionSpacing ExampleThis example shows how to dimension connectors according to a spacing attribute when creating connectors directly from a database. $db is referencing an existing list of database entities. Code pw::Connector setCalculateDimensionMethod Spacing CalculateDimensionMaximum
This attribute is the maximum dimension calculated for a connector when using the commands calculateDimension, setDimensionFromSpacing, and setDimensionFromDistribution. TypeThis attribute is an integer in the range [2, infinity). DefaultThe default for this attribute is 1024. ExampleThis example shows how to set and get the maximum dimension that can be set when using calculateDimension on a connector. Code pw::Connector setCalculateDimensionMaximum 512 Output 512 CalculateDimensionSpacing
This attribute is the default average spacing between successive grid points. TypeA float in the range [0.0, infinity). DefaultThe default for this attribute is 0.0. InformationThis value is used to calculate the dimension of a connector when calculateDimension is called and with CalculateDimensionMethod set to Spacing. An average spacing of 0.0 will set the dimension of the connector to zero. See AlsoCalculateDimensionMethod, setDimension ExampleThis example shows how to set and get the average spacing that a connector is created on database entities with. Code pw::Connector setCalculateDimensionSpacing 0.8 Output 0.8 See AlsoDistributionInfluence
This default is a flag to allow the distribution of a connector to effect the dimension of the connector. TypeA boolean where true indicates that a pw::DistributionShape distribution will influence the connector dimension. DefaultThe default for this attribute is false. InformationThis value is used to calculate the dimension and distribution of a connector when calculateDimension is called. Currently the only distribution that can have a meaningful effect on the dimension is the pw::DistributionShape type. It will increase (but never decrease) the dimension in order to meet the maximum deviation constraints set on the distribution. ExampleThis example shows how to set and get the flag for distribution to affect the dimension of a connector. Code pw::Connector setDistributionInfluence true Output 1 See AlsoNormalMaximumDeviation
This default is the maximum turning angle allowed between successive grid points. TypeA float in the range [0.0, 180.0). 0.0 disables the effect of normal maximum deviation. DefaultThe default for this attribute is 0.0. InformationThis value is used to calculate the dimension and distribution of a connector when calculateDimension is called. ExampleThis example shows how to set and get the maximum turning angle between grid points on a connector. Code pw::Connector setNormalMaximumDeviation 150 Output 150.0 See AlsoCurveMaximumDeviation
This attribute is the maximum distance allowed between the analytic and discrete shape of a connector. TypeThis attribute is a float in the range [0, infinity). 0 is disabled DefaultThe default for this attribute is 0. InformationThis value is used to calculate the dimension and distribution of a connector when calculateDimension is called. ExampleThis example shows how to set and get the maximum distance between analytic and discrete curves of a connector. Code pw::Connector setCurveMaximumDeviation .001 Output 0.001 See AlsoSurfaceCurvatureInfluence
This default is a flag that allows the underlying surface of a connector to affect the NormalMaximumDeviation and CurveMaximumDeviation constraints. TypeA boolean where true indicates that the connector dimension will be influenced by a constraining pw::Surface. DefaultThe default for this attribute is false. InformationThis value is used to calculate the dimension and distribution of a connector when calculateDimension is called. Maximum turning angle and curve deviation calculations use the underlying database curvature in addition to the connector curvature. This is a factor when the database is highly curved transverse to the connector direction but relatively flat in the tangential direction of the connector. ExampleThis example shows how to set and get the flag for the underlying surface to affect normal maximum and curve maximum deviation constraints of a connector. Code pw::Connector setSurfaceCurvatureInfluence true Output 1 See Alsodelete
This action delete this connector. Parameters
ReturnsThis action returns nothing. See AlsoExampleThis example shows how to delete a connector and any other entities it supports. Code set con(1) [pw::Grid getByName "con-45"] calculateDimension
This action sets the dimension of this connector using its current solver settings. ParametersThis action has no parameters. ReturnsThis action returns nothing. InformationThe dimension is calculated using the following steps:
SurfaceCurvatureInfluence affects steps 3 and 4 above if the connector has an underlying surface. If true, the curvature of the underlying surface will be used in addition to the curvature of the connector. ExampleThis example shows how to dimension a connector using average spacing. $con(1) is referencing an existing connector. Code pw::Connector setCalculateDimensionMethod Spacing getDimension
This action gets the dimensions of this connector. ParametersThis action has no parameters. ReturnsThis action returns the integer number of grid points. A non-dimensioned connector will return 0. See AlsoExampleThis example shows how to get the dimension of a connector. $con(1) is referencing an existing connector. Code $con(1) getDimension Output 9 getDimensions
This action gets the dimensions of this connector. ParametersThis action has no parameters. ReturnsThis action returns the integer number of grid points. A non-dimensioned connector will return 0. InformationThis action is an alias for the getDimension action. This action provides an interface consistent with the block, domain and node getDimensions actions. See AlsoExampleThis example shows how to get the dimension of a connector. $con(1) is referencing an existing connector. Code $con(1) getDimensions Output 9 setDimension
This action sets the dimension of this connector. Parameters
ReturnsThis action returns the resulting integer dimension. See AlsogetDimension, calculateDimension, increaseDimension, setDimensionFromSizeField, setDimensionFromSpacing, setDimensionFromDistribution, setDimensionFromSubConnectors ExampleThis example shows how to set the dimension of a connector explicitly. $con(1) is referencing an existing connector. Code $con(1) setDimension 40 setDimensionFromSpacing
This action sets the dimension of this connector based on equal spacing. Parameters
ReturnsThis action returns the computed integer dimension. InformationThe dimension is limited by the CalculateDimensionMaximum attribute. See AlsosetDimension, getDimension, calculateDimension, increaseDimension, setDimensionFromSizeField, setDimensionFromDistribution, setDimensionFromSubConnectors ExampleThis example shows how to set the dimension of a connector explicitly from spacing. $con(1) is referencing an existing connector. Code puts [$con(1) setDimensionFromSpacing .2] Output 79 setDimensionFromDistribution
This action sets the dimension of this connector based on the current distribution. ParametersThis action has no parameters. ReturnsThis action returns the computed integer dimension. InformationThe dimension is limited by the CalculateDimensionMaximum attribute. ExampleThis example shows how to set the dimension of a connector explicitly from distribution. $con(1) is referencing an existing connector. Code $con(1) replaceDistribution 1 [pw::DistributionShape create] setSubConnectorDimensionFromDistribution
This action sets the dimension of a subconnector in this connector based on the current distribution of the subconnector. Parameters
ReturnsThis action returns the computed integer dimension of the subconnector. InformationThe dimension is limited by the CalculateDimensionMaximum attribute. See AlsosetDimension, calculateDimension, increaseDimension, setDimensionFromSizeField, setDimensionFromSpacing, setDimensionFromSubConnectors ExampleThis example shows how to set the dimension of a subconnector explicitly from distribution. $con(1) is referencing an existing connector. Code $con(1) replaceDistribution 1 [pw::DistributionGrowth create] setDimensionFromSubConnectors
This action sets the dimension of this connector by copying the dimension from a list of subconnectors. Parameters
ReturnsThis action returns the computed integer dimension. See AlsosetDimension, calculateDimension, increaseDimension, setDimensionFromSizeField, setDimensionFromSpacing, setDimensionFromDistribution ExampleThis example shows how to set the dimension of a connector explicitly from subconnectors. $con(1) and $con(2) are referencing existing connectors. Code $con(2) setDimensionFromSubConnectors [list $con(1) 2] increaseDimension
This action increases the dimension of this connector. Parameters
ReturnsThis action returns the new dimension. InformationIn order to meet the connectors curvature criteria, changing the dimension may alter the connector’s distribution. See AlsosetDimension, calculateDimension, setDimensionFromSizeField, setDimensionFromSpacing, setDimensionFromDistribution, setDimensionFromSubConnectors ExampleThis example shows how to increase the dimension of a connector using the distance parameter. $con(3) is referencing an existing connector. Code if {[$con(3) getDimension] < 15} { Output 37 getSegmentCount
This action gets the number of segments in this connector. ParametersThis action has no parameters. ReturnsThis action returns the integer number of segments. ExampleThis example shows how to get the number of segments in a connector. $con(1) is referencing an existing connector. Code puts [$con(1) getSegmentCount] Output 2 getSegment
This action gets the segment at the given index. Parameters
ReturnsThis action returns a pw::Segment object. See AlsosetSegment, getSegmentCount, getSegments, pw::Segment ExampleThis example shows how to get the number of control points for a certain segment in a connector. $con(3) is referencing an existing connector. Code puts "This segment has [[$con(3) getSegment 2] getPointCount] \ Output This segment has 5 control points. getSegments
This action gets the list of segments. Parameters
ReturnsThis action returns a pw::Segment object list. See Alsopw::Segment, getSegmentCount, getSegment ExampleThis example shows how to get the number of control points for a certain segment in a connector. $con(3) is referencing an existing connector. Code puts "This segment has [[lindex [$con(3) getSegments] 1] \ Output This segment has 5 control points. setSegment
This action sets the segment at the given index. Parameters
ReturnsThis action returns nothing. See AlsoaddSegment, insertSegment, removeSegment, getSegment, pw::Segment ExampleThis example shows how to set a segment at a certain index in a connector. $con(1) is referencing an existing connector. Code set seg(1) [pw::SegmentSpline create] addSegment
This action adds the segment to the end of the segments in the connector. Parameters
ReturnsThis action returns nothing. InformationAn error will be raised if the segment already belongs to another connector. See AlsosetSegment, insertSegment, removeSegment, pw::Segment ExampleThis example shows how to add a segment to the end of a connector. $con(1) is referencing an existing connector. Code set seg(1) [pw::SegmentSpline create] insertSegment
This action inserts the segment at the given index. Parameters
ReturnsThis action returns nothing. InformationAn error will be raised if the segment already belongs to another connector. Inserting at an index of (number-of-segments + 1) will append the segment. See AlsoaddSegment, setSegment, removeSegment, pw::Segment ExampleThis example shows how to insert a segment at the second index of a connector. $con(1) is referencing an existing connector. Code set seg(1) [pw::SegmentSpline create] removeSegment
This action removes a segment from the connector. Parameters
InformationEither index or segment must be specified. ReturnsThis action returns nothing. See AlsoremoveAllSegments, getSegment, getSegments, addSegment, setSegment, insertSegment, pw::Segment ExampleThis example shows how to remove a segment from a connector according to its index. $con(1) is referencing an existing connector. Code $con(1) removeSegment 3 removeAllSegments
This action removes all of the segments from the connector. ParametersThis action has no parameters. ReturnsThis action returns nothing. See AlsoExampleThis example shows how to remove all segments from a connector. $con(1) is referencing an existing connector. Code $con(1) removeAllSegments replaceAllSegments
This action replaces all of the segments in the connector. Parameters
ReturnsThis action returns nothing. See AlsoaddSegment, setSegment, insertSegment, removeSegment, removeAllSegments, pw::Segment ExampleThis example shows how to replace all the existing segments in a connector with new ones. $con(1) is referencing an existing connector. $seg(1) and $seg(2) are referencing existing segments. Code $con(1) replaceAllSegments [list $seg(1) $seg(2)] getSubConnectorCount
This action gets the number of subconnectors in this connector. ParametersThis action has no parameters. ReturnsThis action returns the integer number of subconnectors. ExampleThis example shows how to get the subconnector count in order to set a breakpoint spacing at every breakpoint between subconnectors. $con(1) is referencing an existing connector. Code for {set x 1} {$x < [$con(1) getSubConnectorCount]} {incr x} { getSubConnectorDimension
This action gets the dimension of a subconnector in this connector. Parameters
ReturnsThis action returns the integer dimension of the subconnector, or if no index is specified, a list of integer dimensions for each subconnector. See AlsoExampleThis example shows how to get the dimension of each subconnector in a given connector. $con(1) is referencing an existing connector. Code puts [$con(1) getSubConnectorDimension] Output 96 148 88 71 setSubConnectorDimension
This action sets the dimensions of each subconnector in this connector. Parameters
ReturnsThis action returns nothing. See AlsoExampleThis example shows how to set the dimension of each of the 4 subconnectors in a given connector with an overall dimension of 210. $con(1) is referencing an existing connector. Code $con(1) setSubConnectorDimension [list 50 75 45 40] getSubConnectorRange
This action gets the minimum and maximum grid point indices of a subconnector. Parameters
ReturnsThis action is a list containing the first and last grid point integer indices in the subconnector. See AlsogetSubConnectorRanges, setSubConnectorDimension, getSubConnectorDimension ExampleThis example shows how to get range of a subconnector within a given connector. $con(1) is referencing an existing connector. Code puts [$con(1) getSubConnectorRange 3] Output 243 330 getSubConnectorRanges
This action gets the minimum and maximum grid point indices of all subconnectors. ParametersThis action has no parameters. ReturnsThis action is a list containing the first and last grid point integer indices for all the subconnectors. See AlsogetSubConnectorRange, setSubConnectorDimension, getSubConnectorDimension ExampleThis example shows how to get range of a subconnector within a given connector. $con(1) is referencing an existing connector. Code puts [lindex [$con(1) getSubConnectorRanges] 2] Output 243 330 getDistribution
This action gets the distribution function of a subconnector. Parameters
ReturnsThis action returns a pw::Distribution object. See AlsosetDistribution, pw::Distribution ExampleThis example shows how to get the distribution of the third subconnector within a given connector. $con(1) is referencing an existing connector. Code puts [[$con(1) getDistribution 3] getType] Output pw::DistributionTanh setDistribution
This action sets the distribution function of a subconnector. Parameters
ReturnsThis action returns nothing. See AlsogetDistribution, replaceDistribution, pw::Distribution ExampleThis example shows how to set the distribution of the third subconnector within a given connector. Any previously set spacings will not be retained. $con(1) is referencing an existing connector. Code $con(1) setDistribution 3 [pw::DistributionMRQS create] replaceDistribution
This action replaces the distribution function of a subconnector, retaining the previously set spacings. Parameters
ReturnsThis action returns nothing. See AlsosetDistribution, getDistribution, pw::Distribution ExampleThis example shows how to replace the distribution of the third subconnector within a given connector. Any previously set spacings will be retained. $con(1) is referencing an existing connector. Code $con(1) replaceDistribution 3 [pw::DistributionMRQS create] lockDistribution
This action locks the distribution of a subconnector. Parameters
ReturnsThis action returns nothing. InformationLocking is done by converting the current distribution to a pw::DistributionGeneral object using the current dimension and distribution. See AlsosetDistribution, getDistribution, pw::DistributionGeneral ExampleThis example shows how to lock the distribution of the third subconnector within a given connector. $con(1) is referencing an existing connector. Code $con(1) lockDistribution 3 resetGeneralDistributions
This action switches all of the subconnector distributions that are of type pw::DistributionGeneral to use the current default distribution. ParametersThis action has no parameters. ReturnsThis action returns nothing. See AlsosetDistribution, pw::DistributionGeneral ExampleThis example shows how to reset the distributions of all subconnectors within a given connector. $con(1) is referencing an existing connector. Code $con(1) resetGeneralDistributions getBreakPoint
This action gets the parameter of the break point at the end of the subconnector with the given index. Parameters
ReturnsThis action returns the float parameter of the break point in the range [0.0, 1.0]. See AlsogetBreakPoints, getSubConnectorCount, getSubConnectorDimension, getParameter ExampleThis example shows how to get the parameter of the break point at the end of the second subconnector. $con(1) is referencing an existing connector. Code puts [$con(1) getBreakPoint 2] Output 0.3361120722538553 getBreakPoints
This action gets the parameters of the break points at the end of the subconnectors. ParametersThis action has no parameters. ReturnsThis action returns the float parameter list of the break points in the range [0.0, 1.0]. See AlsogetBreakPoint, getBreakPointType, getSubConnectorCount ExampleThis example shows how to get the parameter of the break point at the end of the second subconnector. $con(1) is referencing an existing connector. Code puts [lindex [$con(1) getBreakPoints] 1] Output 0.3361120722538553 getBreakPointType
This action gets the type of break point at the end of the subconnector. Parameters
ReturnsThis action returns the string breakpoint type with options < Control | Arc >. See AlsogetBreakPointTypes, getSubConnectorCount ExampleThis example shows how to get the type of the break point at the end of the second subconnector. $con(1) is referencing an existing connector. Code puts [$con(1) getBreakPointType 2] Output Arc getBreakPointTypes
This action gets the type at each break point at the end of the subconnectors. ParametersThis action has no parameters. ReturnsThis action returns a string list of breakpoint types with options < Control | Arc >. See AlsogetBreakPointType, getSubConnectorCount ExampleThis example shows how to get the type of the break point at the end of the second subconnector. $con(1) is referencing an existing connector. Code puts [lindex [$con(1) getBreakPointTypes] 1] Output Arc addBreakPoint
This action adds one or more break points to the list of break points. Parameters
InformationOnly one of -arc, -control, -X, -Y, -Z, -U or -V flags is allowed. ReturnsThis action returns the integer index of the break point added. In the case of the -X, -Y, -Z, -U, or -V options, the return value is a list of the integer break point indices added. See AlsoremoveBreakPoint, removeAllBreakPoints ExampleThis example shows how to add a break point at three different X locations on a connector. $con(1) is referencing an existing connector. Code foreach bp [list -15 0 10] { Output 1 removeBreakPoint
This action removes the break point from the connector at the end of the subconnector with the given index. Parameters
ReturnsThis action returns nothing. See AlsoaddBreakPoint, removeAllBreakPoints ExampleThis example shows how to remove a break point at the end of the second subconnector. $con(1) is referencing an existing connector. Code $con(1) removeBreakPoint 2 removeAllBreakPoints
This action removes all of the break points from the connector. ParametersThis action has no parameters. ReturnsThis action returns nothing. See AlsoaddBreakPoint, removeBreakPoint, getSubConnectorCount ExampleThis example shows how to remove all the break points from a connector. $con(1) is referencing an existing connector. Code $con(1) removeAllBreakPoints checkBreakPoint
This action checks if a break point can be added at a given location. Parameters
ReturnsThis action returns a boolean, true if the break point can be added, false if it is too close to an existing break point or if there are not enough grid points. See AlsoExampleThis example shows how to check to see if a break point can be added at a certain arc length of a connector. $con(1) is referencing an existing connector. Code puts [$con(1) checkBreakPoint -arc .6] Output 1 setBreakPointSpacing
This action sets the spacing on both sides of a break point. Parameters
ReturnsThis action returns nothing. See AlsoaddBreakPoint, pw::Spacing, pw::SpacingExplicit InformationOne of spacing, value or name must be specified. This function replaces the affected distribution functions with duplicate distribution functions before changing the spacing to avoid changing the spacing on any other connectors sharing the modified distribution functions. If you want the spacing to be used for all connectors sharing the distribution functions, you should get the distribution functions and change the spacing on them directly. ExampleThis example shows how to set the break point spacing for every break point on a connector. $con(1) is referencing an existing connector. Code for {set x 1} {$x < [$con(1) getSubConnectorCount]} {incr x} { spline
This action sets the shape of this connector to a smooth interpolation of the grid points of the given connector. Parameters
ReturnsThis action returns nothing. InformationIf the given connector’s grid points are database constrained to a single parameter space, this action will set this connector’s shape to a smooth interpolation in that parameter space, otherwise the connector will be unconstrained. The connector’s new shape will be a single pw::SegmentSpline or pw::SegmentSurfaceSpline. See AlsoExampleThis example shows how to set the shape of $con(1) to a smooth interpolation of the grid points on $con(2). $con(1) and $con(2) are referencing existing connectors. Code $con(1) spline $con(2) fitLSQ
This action sets the shape of this connector to a least squares fit approximation of the grid points of the given connector. Parameters
ReturnsThis action returns nothing. InformationIf the given connector’s grid points are database constrained to a single parameter space, this action will set this connector’s shape to a smooth interpolation in that parameter space, otherwise the connector will be unconstrained. The connector’s new shape will be a single pw::SegmentSpline or pw::SegmentSurfaceSpline. See AlsoExampleThis example shows how to set the shape of $con(1) to a least squares fit approximation with a tolerance other than the default. $con(1) is referencing an existing connector. Code $con(1) fitLSQ -tolerance 0.0001 smoothC1
This action sets the shape of this connector to a C1 continuous approximation of the shape of the given connector. Parameters
ReturnsThis action returns nothing. InformationIf the given connector is database constrained to a single parameter space, this action will set the shape of this connector to a smooth interpolation in that parameter space, otherwise the shape will be unconstrained. The connector’s new shape will be a single pw::SegmentSpline or pw::SegmentSurfaceSpline. See AlsoExampleThis example shows how to set the shape of $con(1) to a C1 continuous approximation of the shape of $con(2). $con(1) and $con(2) are referencing existing connectors. Code $con(1) smoothC1 $con(2) split
This action splits this connector at the given index or point. Parameters
ReturnsThis action returns a list of pw::Connector objects. InformationOne of -I index_list or param_list must be specified. Duplicate indices or parameters will be ignored. Indices and parameters at the limits of the connector will be ignored. Parameter values can be obtained from the getParameter command. ExampleThis example shows how to split a connector into four pieces. Depending on how the connector is parameterized, this may or may not split the connector into quarters. $con(1) is referencing an existing connector. Code foreach split [$con(1) split [list 0.25 0.5 0.75]] { Output con-1-split-1 join
This action joins this connector with a given connector. Parameters
NoteIf neither of the above flags is present, all break points will be removed from the given connector and its distribution function will be set to the default. ReturnsThis action returns nothing. See AlsoExampleThis example shows how to join two connectors but keep the distribution settings by adding a break point. $con(1) is referencing an existing connector. Code $con(1) join -keepDistribution $con(2) project
This action projects this connector onto one or more database entities. Parameters
ReturnsThis action returns nothing. ExampleThis example shows how to project a connector linearly along the -Y axis onto the first database entity it encounters in that path. $con(1) is referencing an existing connector. Code $con(1) project -type Linear -direction "0 -1 0" getDefaultProjectDirection
This action gets the default projection direction for this connector. ParametersThis action has no parameters. ReturnsThis action returns a direction vector. ExampleThis example shows how to find the default projection direction for a connector. $con(1) is referencing an existing connector. Code puts [$con(1) getDefaultProjectDirection] Output 0.0 0.0 1.0 setOrientation
This action sets the orientation of this connector, by specifying the new imin node. Parameters
ReturnsThis action returns nothing. InformationSince the parameter specifies the new Imin node, if IMinimum or 1 is given as the imin_node parameter, the connector will not be changed. Use an imin_node parameter of IMaximum or 2 to reverse the connector. ExampleThis example shows how to set the connector orientation. $con(1) is referencing an existing connector. Code $con(1) setOrientation 2 alignOrientation
This action aligns the I orientation of the given connectors with this connector. Parameters
ReturnsThis action returns nothing. InformationAny connectors in the given list that are not topologically connected to this connector will be ignored. ExampleThis example shows how to align multiple connector orientations with the given connector’s orientation. $con(1) is referencing an existing connector. Code $con(1) alignOrientation [list $con(2) $con(3)] createPeriodic
This action creates a periodic copy of this connector. This action will fail if the connector is already part of a periodic pair. Parameters
InformationOne of -translate or -rotate must be specified. ReturnsThis action returns a new pw::Connector object. Under certain circumstances (such as the pw::Connector belonging to a periodic pw::Domain), the copy will be created but the periodic link will be broken. Call getPeriodic to verify the periodicity. See AlsogetPeriodic, breakPeriodic, create, createFromPoints, createOnDatabase ExampleThis example shows how to create a periodic copy of a connector via rotation. $con(1) is referencing an existing connector. Code puts [[$con(1) createPeriodic \ Output con-2 getPeriodic
This action gets the connector that shares a periodic link with this connector. Parameters
ReturnsThis action returns a pw::Connector object if there is a periodic link, or an empty string if there is no periodic link. See AlsocreatePeriodic, breakPeriodic, pwu::Transform ExampleThis example shows how to return the periodic connector linked to a given connector. $con(2) is referencing an existing connector. Code puts [[$con(2) getPeriodic] getName] Output con-1 breakPeriodic
This action breaks the periodic link that this connector has with another connector. This action has no effect if the connector was not part of a periodic pair. ParametersThis action has no parameters. ReturnsThis action returns nothing. See AlsoExampleThis example shows how to break the periodic link that a given connector has. $con(1) is referencing an existing connector. Code $con(1) breakPeriodic getPoint
This action gets the position of a connector grid point. Parameters
ReturnsThis action returns a point giving the grid point position and this may be in the form “u v dbentity”. See AlsoExampleThis example shows how to get the point of a connector grid point. $con(1) is referencing an existing connector. Code puts [$con(1) getPoint 5] Output -7.709635714285716 4.160740000000001 0.0 getPoints
This action gets all the connector grid points. ParametersThis action has no parameters. ReturnsThis action returns a point list giving the grid point position and this may be in the form “u v dbentity”. See AlsoExampleThis example shows how to get the point of a connector grid point. $con(1) is referencing an existing connector. Code set points [$con getPoints] Output -7.709635714285716 4.160740000000001 0.0 setPoint
This action sets the position of a connector interior grid point. Parameters
ReturnsThis action returns nothing. See AlsoInformationIf the new point is on the underlying segments and between the adjacent grid point, the segment is unchanged. If the moved index is on a break point, the break point is removed. If the new point is moved off of the underlying segments or is on the segments but is not between adjacent grid points, the underlying segments are replaced by one defined by the grid points (including the new value) and all break points are removed. In all cases, the distribution of the final subconnector containing the point is changed to a general distribution function. ExampleThis example shows how to set the point of an interior connector grid point. The original connector is a line on the X-axis, so setting this point changes the shape of the connector. $con(1) is referencing an existing connector. Code $con(1) setPoint 3 "2.5 1 0" getPosition
This action gets a position on a connector in the defining space of the connector. Parameters
ReturnsThis action returns a point giving the position on the connector which may be in the form “u v dbentity”. InformationIf the connector is defined in model space, an xyz vector will be returned. If the connector is defined by a database, the position will be returned in database parameter space. See AlsoExampleThis example shows how to get the position at a constant X value on a connector. This connector was created on a database entity. $con(1) is referencing an existing connector. Code puts [pw::Application getDescription [$con(1) getPosition -X 3]] Output curve-1 (0.6,0) getXYZ
This action gets the model space position on a connector. Parameters
ReturnsThis action returns an XYZ vector. See AlsoExampleThis example shows how to get the model space position at 3/4 the the length of a connector. $con(1) is referencing an existing connector. Code puts [$con(1) getXYZ -arc [list 0.75]] Output 3.75 2.0 0.0 getParameter
This action gets a parameter value on a connector. Parameters
ReturnsThis action returns the float parameter of the connector. InformationThe -parameter value option only returns the given value clamped to [0.0, 1.0]. It is included for consistency with other commands. See AlsoExampleThis example shows how to get the parameter value of a grid point on a connector. $con(1) is referencing an existing connector. Code puts [$con(1) getParameter -grid 2] Output 0.25 getRadiusOfCurvature
This action returns the radius of curvature at the specified position on the connector. Parameters
ReturnsThis action returns a float radius of curvature. InformationIf there is no curvature, a radius of zero will be returned. See AlsogetTangent
This action gets the tangency vector on a connector. Parameters
ReturnsThis action returns a normalized XYZ vector representing the tangency vector. The vector will be aligned with the parametric direction of the connector. The value is undefined for a pole connector and will trigger an error. See Alsopw::Curve.getGeometricProperties, pw::Curve.getTangent, getRadiusOfCurvature, getTransverseAngle getGeometricProperties
This action calculates the geometric properties at the specified position on the connector. Parameters
ReturnsThis action returns nothing. Curve-based Geometry Properties ArrayThis array is divided into the following elements.
Surface-based Geometry Properties ArrayThis array is divided into the following elements. If the connector is not constrained to a surface, the elements will be set to 0. If the connector is constrained to multiple surfaces, the surface with the smallest minimum radius of curvature will be used for all properties.
Directional and Orthogonal Surface-based Geometry Properties ArrayThis array is divided into the following elements. If the connector is not constrained to a surface, the elements will be set to 0. If the connector is constrained to multiple surfaces, the surface with the smallest minimum radius of curvature will be used for all properties.
getTransverseAngle
This action gets the transverse angle, in degrees, at a position on a connector in the defining space of the connector, and optionally whether the connector is convex or concave at that position. Parameters
ReturnsThis action returns the transverse angle of the connector at the requested position in degrees. InformationThis command only works for a connector that is shared by two domains and has more than 2 grid points. The transverse angle is determined from the surface normals by snapping the position to the database surfaces (for each domain). If the optional typeVar parameter is supplied, whether the position lies on a convex or concave shared boundary between two databases surfaces (one from each domain) is determined. Also note that the assembly tolerance and tolerance multiplier can both or separately be specified, but neither can be if sample distance is specified, and vice versa. See AlsogetTangent, getRadiusOfCurvature ExampleThis example shows how to get the transverse angle and concavity at a grid position on a connector. This connector was created on a database entity. $con(1) is referencing an existing connector. Code puts "$con(1) transverse angle: [$con(1) getTransverseAngle -type\ Output curve-1 transverse angle: 90, concavity: CONVEX getLength
This action gets the connector length from the beginning to a given location. Parameters
ReturnsThis action returns the float curve length. InformationThe -arc value option converts value from a normalized to a non-normalized length. It is included for consistency with other commands. See AlsogetPosition, getXYZ, getTotalLength ExampleThis example shows how to get the length along a connector from the point on the connector closest to the given point. $con(1) is referencing an existing connector. Code puts [$con(1) getLength -closest "4.5 1 0"] Output 6.985033540042618 getParameters
This action gets the parameters at which the curve intersects the value. Parameters
ReturnsThis action returns an array of parameters. ExampleThis example shows how to get parameters where this connector crosses Y-axis at 0.5. $con(1) is referencing an existing connector. Code puts [$con(1) getParameters -Y .5] Output 0.17637560670204108 0.2778605205775764 0.692205316990254 getTotalLength
This action gets the total length of the connector. Parameters
ReturnsThis action returns float length in the range [0.0, infinity). See AlsoExampleThis example shows how to get the total length of a connector, plus the length of the part constrained to a database entity. $con(1) is referencing an existing connector. Code puts [$con(1) getTotalLength -constrained onDB] Output 10.012756135615804 getAssembleTolerance
This action returns the maximum tolerance used to close the model along the connector. ParametersThis action has no parameters. ReturnsThis action returns the float maximum tolerance required to close the model along the connector’s underlying support curves. If the connector’s support curves are not used to close a model, the return value is zero. getAverageSpacing
This action gets the average spacing between grid points of the connector. ParametersThis action has no parameters. ReturnsThis action returns the float average spacing in the range [0.0, infinity). See AlsogetDistribution, pw::Distribution.getBeginSpacing, pw::Distribution.getEndSpacing ExampleThis example shows how to get the average spacing of grid points on this connector. $con(1) is referencing an existing connector. Code puts [$con(1) getAverageSpacing] Output 0.1353075153461595 closestPoint
This action gets the closest point on this connector to the given point. Parameters
ReturnsThis action returns a point giving the closest point position and this may be in the form “u v dbentity”. If there is no closest point, the origin (0, 0, 0) will be returned. InformationIf the connector is defined in model space, an xyz vector will be returned. If the connector is defined by a database, the position will be returned in database parameter space. See AlsoExampleThis example shows how to get the point on the connector closest to the given point. The connector is not database constrained. $con(1) is referencing an existing connector. Code puts [$con(1) closestPoint -parameter param "4 3 0"] Output 4.230944469613184 0.7742033915483331 0.0 closestControlPoint
This action gets the control point on this connector closest to the given point. Parameters
ReturnsThis action returns a point in model space or the origin (0, 0, 0) if there is no closest point. See AlsoExampleThis example shows how to return the point of the nearest control point to a given point. A break point is then added at that control point if it is not one of the end control points. $con(1) is referencing an existing connector. Code puts [$con(1) closestControlPoint -index cp ".5 .5 0"] Output 0.36029 -0.170198 0.0 getControlPointCount
This action gets the number of control points on this connector. ParametersThis action has no parameters. ReturnsThis action returns the integer number of connector control points. ExampleThis example shows how to get the number of controls points on a connector. $con(1) is referencing an existing connector. Code puts [$con(1) getControlPointCount] Output 4 removeInteriorControlPoints
This action removes the interior control points of each segment of this connector. ParametersThis action has no parameters. ReturnsThis action returns a boolean which is true if there were any control points removed and false otherwise. getNode
This action gets a node from a connector. Parameters
ReturnsThis action returns a pw::Node object. InformationBegin and 1 are the same. End and 2 are the same. ExampleThis example shows how to get the end node of a connector and then find the XYZ position of that node. $con(1) is referencing an existing connector. Code set node [$con(1) getNode End] Output 20.5703 -2.17697 0.0 isClosed
This action checks if the connector is closed. ParametersThis action has no parameters. ReturnsThis action returns a boolean, true if the connector is closed. ExampleThis example checks to see whether a circle connector is closed. $con(1) is referencing an existing connector. Code puts [$con(1) isClosed] Output 1 isPole
This action checks if the connector is a pole. ParametersThis action has no parameters. ReturnsThis action returns a boolean, true if the connector is a pole. ExampleThis example checks to see whether a connector is a pole. $con(1) is referencing an existing connector. Code puts [$con(1) isPole] Output 0 checkDistributionValidity
This action checks if the connector’s distributions on all of its subconnectors could be applied as requested. ParametersThis action has no parameters. ReturnsThis action returns a boolean, true if the distributions on all of the connector’s subconnectors were applied successfully. InformationThis will check to see if spacing constraints that are applied to the ends of a subconnector can be enforced. See AlsogetDistribution, pw::Distribution ExampleThis example shows how to check if a distribution was correctly applied to a subconnector. $con(1) is referencing an existing connector. Code [$con(1) getDistribution 1] setEndSpacing .5 Output 1 isInteriorIndex
This action checks to see if an index corresponds to a point in the interior of the connector. Parameters
ReturnsThis action returns true if the index is an interior point. ExampleThis example shows how to check to see if a certain index is in the interior of a connector. $con(1) is referencing an existing connector that has a dimension of 10. Code puts [$con(1) isInteriorIndex 1] Output 0 getAdjacentIndices
This action returns the indices that are directly connected to the specified index. Parameters
ReturnsThis action returns a list of integer indices representing the adjacent coordinates. ExampleThis example shows how to return a list of integer indices that are adjacent to the given integer index on a connector. $con(1) is referencing an existing connector. Code puts [$con(1) getAdjacentIndices 5] Output 4 6 getCellCount
This action gets the number of 1D cells in this connector. ParametersThis action has no parameters. ReturnsThis action returns the integer number of cells. InformationThis action provides an interface consistent with the block, domain getCellCount actions. A 1D cell is a line segment between two consecutive connector grid points. The number of connector cells is equal to [$con getPointCount] - 1. See Alsopw::Domain.getCellCount, pw::Block.getCellCount, getCell ExampleThis example shows how to get the number of cells in a connector. $con is referencing an existing connector. Code $con setDimension 5 Output getPointCount: 5 getCell
This action gets the indices of the given 1D cell. Parameters
ReturnsThis action returns a list of two integer point indices. InformationThis action provides an interface consistent with the block, domain getCell actions. A 1D cell is a line segment between two consecutive connector grid points. A connector’s cell is equal to [list $index [expr {$index + 1}]]. See AlsogetCells, pw::Domain.getCell, pw::Block.getCell, getCellCount ExampleThis example shows how to get the indices for a cell. $con is referencing an existing connector. Code $con setDimension 5 Output getPointCount: 5 getCells
This action gets the indices of all the 1D cells. ParametersThis action has no parameters. ReturnsThis action returns a list of integer pairs of point indices. InformationA 1D cell is a line segment between two consecutive connector grid points. A connector’s cell is equal to [list $index [expr {$index + 1}]]. See AlsoExampleThis example shows how to get the indices for a cell. $con is referencing an existing connector. Code $con setDimension 5 Output getPointCount: 5 applyTRex
This action will create (if not specified) and apply a T-Rex boundary condition to the unstructured domains that use this connector. If the connector is shared with a structured domain, AdjacentGrid boundary condition will be applied. If a boundary condition is not specified, the default T-Rex boundary condition Type along with the corresponding default value will be applied. Parameters
ReturnsThe T-Rex boundary condition that has been assigned. See Alsopw::TRexCondition, pw::TRexCondition.ConditionType, applyTRex (static) |
This action creates a new connector object.
pw::Connector create
This action creates new connector objects on the given database entities.
pw::Connector createOnDatabase ?-merge tolerance? ?-splitConnectors split_angle? ?-joinConnectors join_angle? ?-parametricConnectors mode? ?-reject rejectVar? ?-type type? entity_or_boundary_list
This action, given a list of XYZ vector values or database-constrained points, creates a new connector.
pw::Connector createFromPoints points
This action joins as many of the given connectors together as possible.
pw::Connector join ?<-keepDistribution | -resetDistribution>? ?-deleteBreakPoints? ?-reject rejectVar? connectors
This action, given two point-lists, returns a segment type, a start point, an end point, and a ProjectToCommon state that represent the best segment for a connector between the given points.
pw::Connector getBestSegment ?-start startVar? ?-end endVar? ?-projectToCommon projectToCommonVar? start_points end_points
This action gets a list of all connectors using the specified node.
pw::Connector getConnectorsFromNode node
This action gets a list of all connectors using the specified spacing object.
pw::Connector getConnectorsFromSpacing ?-details? ?-global? spacing
This action finds the connectors adjacent to the given list of connectors.
pw::Connector getAdjacentConnectors ?-maximumAngle angle? ?-all? connectors
This action looks for connectors in a plane, with the candidate connectors given explicitly or implicitly from the given entities.
pw::Connector getConnectorsInPlane ?-tolerance tol? ?-lamina? ?-loops? ?-secondary plane? plane entities
This action checks if connectors will have a dimension after being created and the calculateDimension method called on them, based on the current settings.
pw::Connector doConnectorsGetDimension
This action sets the dimension of this connector using its current solver settings.
$con calculateDimension
This action finds connectors that have invalid distributions.
pw::Connector getInvalidDistributions ?-all?
This action modifies the distribution and dimension of a list of pw::Connector objects based on the current size field.
pw::Connector setDimensionFromSizeField ?-include ents? ?-exclude ents? ?-ignoreAll? ?-matchDimensions? ?-backgroundSpacing spacing? ?-defaultDecay decay? ?-calculationMethod method? connectors
This action synchronizes spacing constraints at shared connector grid points.
pw::Connector synchronizeSpacings ?<-minimum | -maximum | -average>? ?-growthRate rate? ?-undefined domainsVar? ?-useTRexSpacings? ?-keepDimensionAndDistribution? ?-returnDuplicates? connectors
This action will create (if not specified) and apply T-Rex boundary conditions to the unstructured domains that use the given connectors.
pw::Connector applyTRex ?-refine? ?<-wall bc1 | -angle bc1 | -aspectratio bc1 | -maxaspectratio bc1>? ?-adjacent bc2? ?-unused connectorVar? ?-domains domainVar? connectors
This action replaces the distribution function of a list of subconnectors, retaining the previously set spacings.
pw::Connector swapDistribution distribution_type subcon_list
This default is the dimension of a connector when it is created.
pw::Connector get/setDefault Dimension dim
This default is the distribution of a subconnector when it is created.
pw::Connector get/setDefault DistributionType distribution_type
This default is the beginning spacing of a subconnector when it is created.
pw::Connector get/setDefault BeginSpacing spacing
This default is the ending spacing of a subconnector when it is created.
pw::Connector get/setDefault EndSpacing spacing
This attribute is the dimension of a connector when it is created implicitly or when the calculateDimension action is called.
pw::Connector get/setCalculateDimensionMethod method
This attribute is the maximum dimension calculated for a connector when using the commands calculateDimension, setDimensionFromSpacing, and setDimensionFromDistribution.
pw::Connector get/setCalculateDimensionMaximum dimension
This action sets the dimension of this connector based on equal spacing.
$con setDimensionFromSpacing spacing
This action sets the dimension of this connector based on the current distribution.
$con setDimensionFromDistribution
This attribute is the default average spacing between successive grid points.
pw::Connector get/setCalculateDimensionSpacing spacing
This default is a flag to allow the distribution of a connector to effect the dimension of the connector.
pw::Connector get/setDistributionInfluence influence
This default is the maximum turning angle allowed between successive grid points.
pw::Connector get/setNormalMaximumDeviation angle
This attribute is the maximum distance allowed between the analytic and discrete shape of a connector.
pw::Connector get/setCurveMaximumDeviation distance
This default is a flag that allows the underlying surface of a connector to affect the NormalMaximumDeviation and CurveMaximumDeviation constraints.
pw::Connector get/setSurfaceCurvatureInfluence influence
This action delete this connector.
$con delete ?-force?
This action gets the dimensions of this connector.
$con getDimension
This action gets the dimensions of this connector.
$con getDimensions
This action sets the dimension of this connector.
$con setDimension dim
This action sets the dimension of a subconnector in this connector based on the current distribution of the subconnector.
$con setSubConnectorDimensionFromDistribution index
This action sets the dimension of this connector by copying the dimension from a list of subconnectors.
$con setDimensionFromSubConnectors subcon_list
This action increases the dimension of this connector.
$con increaseDimension ?-maximumLevel value? ?-maximumSpacing value? ?-minimumSpacing value? ?-surface? angle distance
This action gets the number of segments in this connector.
$con getSegmentCount
This action gets the segment at the given index.
$con getSegment ?-copy? index
This action gets the list of segments.
$con getSegments ?-copy?
This action sets the segment at the given index.
$con setSegment index segment
This action adds the segment to the end of the segments in the connector.
$con addSegment segment
This action inserts the segment at the given index.
$con insertSegment index segment
This action removes a segment from the connector.
$con removeSegment < index | segment >
This action removes all of the segments from the connector.
$con removeAllSegments
This action replaces all of the segments in the connector.
$con replaceAllSegments segments
This action gets the number of subconnectors in this connector.
$con getSubConnectorCount
This action gets the dimension of a subconnector in this connector.
$con getSubConnectorDimension ?index?
This action sets the dimensions of each subconnector in this connector.
$con setSubConnectorDimension dims
This action gets the minimum and maximum grid point indices of a subconnector.
$con getSubConnectorRange index
This action gets the minimum and maximum grid point indices of all subconnectors.
$con getSubConnectorRanges
This action gets the distribution function of a subconnector.
$con getDistribution ?-copy? index
This action sets the distribution function of a subconnector.
$con setDistribution ?-lockEnds? index distribution
This action replaces the distribution function of a subconnector, retaining the previously set spacings.
$con replaceDistribution index distribution
This action locks the distribution of a subconnector.
$con lockDistribution index
This action switches all of the subconnector distributions that are of type pw::DistributionGeneral to use the current default distribution.
$con resetGeneralDistributions
This action gets the parameter of the break point at the end of the subconnector with the given index.
$con getBreakPoint index
This action gets the parameters of the break points at the end of the subconnectors.
$con getBreakPoints
This action gets the type of break point at the end of the subconnector.
$con getBreakPointType index
This action gets the type at each break point at the end of the subconnectors.
$con getBreakPointTypes
This action adds one or more break points to the list of break points.
$con addBreakPoint ?< -control | -arc | -X | -Y | -Z | -U | -V >? value
This action removes the break point from the connector at the end of the subconnector with the given index.
$con removeBreakPoint index
This action removes all of the break points from the connector.
$con removeAllBreakPoints
This action checks if a break point can be added at a given location.
$con checkBreakPoint ?< -control | -arc >? value
This action sets the spacing on both sides of a break point.
$con setBreakPointSpacing index < spacing | value | name >
This action sets the shape of this connector to a smooth interpolation of the grid points of the given connector.
$con spline ?connector?
This action sets the shape of this connector to a least squares fit approximation of the grid points of the given connector.
$con fitLSQ ?-tolerance tol? ?connector?
This action sets the shape of this connector to a C1 continuous approximation of the shape of the given connector.
$con smoothC1 ?-tolerance tol? ?connector?
This action splits this connector at the given index or point.
$con split < -I index_list | param_list >
This action joins this connector with a given connector.
$con join ?<-keepDistribution | -resetDistribution>? ?-deleteBreakPoints? connector ?side?
This action projects this connector onto one or more database entities.
$con project ?-type proj_type? ?-direction direction? ?-center center? ?-axis point normal? ?-fit tolerance? ?<-interior | -shape>? ?dbentities?
This action gets the default projection direction for this connector.
$con getDefaultProjectDirection
This action sets the orientation of this connector, by specifying the new imin node.
$con setOrientation imin_node
This action aligns the I orientation of the given connectors with this connector.
$con alignOrientation connectors
This action creates a periodic copy of this connector.
$con createPeriodic < -translate vector | -rotate point normal angle >
This action gets the connector that shares a periodic link with this connector.
$con getPeriodic ?-transform matrixVar?
This action breaks the periodic link that this connector has with another connector.
$con breakPeriodic
This action gets the position of a connector grid point.
$con getPoint ?-constrained constrainedVar? index
This action gets all the connector grid points.
$con getPoints
This action sets the position of a connector interior grid point.
$con setPoint index point
This action gets a position on a connector in the defining space of the connector.
$con getPosition ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets the model space position on a connector.
$con getXYZ ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets a parameter value on a connector.
$con getParameter ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action returns the radius of curvature at the specified position on the connector.
$con getRadiusOfCurvature ?-surface? ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets the tangency vector on a connector.
$con getTangent ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action calculates the geometric properties at the specified position on the connector.
$con getGeometricProperties ?-curve curveVar? ?-surface surfaceVar? ?-directional directionalVar? ?-orthogonal orthogonalVar? ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets the transverse angle, in degrees, at a position on a connector in the defining space of the connector, and optionally whether the connector is convex or concave at that position.
$con getTransverseAngle < ?-tolerance tol? | ?-toleranceMultiplier multiplier? | ?-sampleDistance distance? > ?-type typeVar? ? < -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest > ? value
This action gets the connector length from the beginning to a given location.
$con getLength ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets the parameters at which the curve intersects the value.
$con getParameters ?< -X | -Y | -Z >? value
This action gets the total length of the connector.
$con getTotalLength ?-constrained constrainedVar?
This action returns the maximum tolerance used to close the model along the connector.
$con getAssembleTolerance
This action gets the average spacing between grid points of the connector.
$con getAverageSpacing
This action gets the closest point on this connector to the given point.
$con closestPoint ?-from fromVar? ?-distance distVar? ?-parameter paramVar? point ?dir?
This action gets the control point on this connector closest to the given point.
$con closestControlPoint ?-from fromVar? ?-distance distVar? ?-parameter paramVar? ?-index indexVar? point ?dir?
This action gets the number of control points on this connector.
$con getControlPointCount
This action removes the interior control points of each segment of this connector.
$con removeInteriorControlPoints
This action gets a node from a connector.
$con getNode < Begin | End | index >
This action checks if the connector is closed.
$con isClosed
This action checks if the connector is a pole.
$con isPole
This action checks if the connector’s distributions on all of its subconnectors could be applied as requested.
$con checkDistributionValidity
This action checks to see if an index corresponds to a point in the interior of the connector.
$con isInteriorIndex index
This action returns the indices that are directly connected to the specified index.
$con getAdjacentIndices ?-linear? index
This action gets the number of 1D cells in this connector.
$con getCellCount
This action gets the indices of the given 1D cell.
$con getCell index
This action gets the indices of all the 1D cells.
$con getCells
This action will create (if not specified) and apply a T-Rex boundary condition to the unstructured domains that use this connector.
$con applyTRex ?<-wall bc1 | -angle bc1 | -aspectratio bc1 | -maxaspectratio bc1>? ?-adjacent bc2? ?-domains domainVar?
This action creates a new explicit spacing object.
pw::SpacingExplicit create
This action defines a named spacing value.
pw::Spacing createNamedValue ?name ?value??
This attribute is the connector tolerance of grid entities and operations.
pw::Grid get/setConnectorTolerance tolerance
This default is the condition type of a T-Rex condition when created.
pw::TRexCondition get/setDefault ConditionType type
This action sets the requested grid point spacing at the beginning of the distribution.
$dist setBeginSpacing < -clearname | spacing | value | name >
This action sets the requested grid point spacing at the end of the distribution.
$dist setEndSpacing < -clearname | spacing | value | name >
This action deletes the given entities.
pw::Entity delete entities
This action gets the fit tolerance for database operations.
pw::Database getFitTolerance
This action calculates the geometric properties at the specified position on the curve.
$curve getGeometricProperties ?-curve curveVar? ?-surface surfaceVar? ?-directional directionalVar? ?-orthogonal orthogonalVar? ?< -grid | -control | -parameter | -arc | -X | -Y | -Z | -closest >? value
This action gets the tangency vector on the curve at a location.
$curve getTangent ?< -parameter | -control | -arc | -X | -Y | -Z | -closest >? value
This action gets the requested grid point spacing at the beginning of the distribution.
$dist getBeginSpacing
This action gets the requested grid point spacing at the end of the distribution.
$dist getEndSpacing
This action gets the number of cells in this domain.
$dom getCellCount
This action gets the number of cells in this block.
$block getCellCount
This action gets the indices of the given cell.
$dom getCell index
This action gets the indices of the given cell.
$block getCell index