Glyph Version 7.22.2 |
pw:: PointDatabase point type Derives Frompw::Object pw::Entity pw::DatabaseEntity Summary
create
This action creates a new database point object. Parametersnone ReturnsThis action returns a new pw::Point object. getPosition
This action gets the position in the defining space of the point at the given parameter or index. Parameters
ReturnsThis action returns the same point for all valid values. The returned point (may be in the form “u v dbentity”). ExampleThis example gets the point’s position. $surface is referencing an existing database surface. Code set point [pw::Point create] Output { 0.5 0.6 ::pw::Surface_4 } getXYZ
This action gets the position of the point in model space at the given parameter or index Parameters
ReturnsThis action returns the same XYZ vector for all valid values. ExampleThis example gets the point’s XYZ location. $surface is referencing an existing database surface. Code set point [pw::Point create] Output { -19.551259370339967 6.9502396184800865 -13.487247573541483 } getDefaultProjectDirection
This action gets the default projection direction for this point. ParametersThis action has no parameters. ReturnsThis action always returns the vector {0 0 1}. ExampleThis example gets the point’s default projection direction. $point is referencing an existing database point. Code puts "\{ [$point getDefaultProjectDirection] \}" Output { 0.0 0.0 1.0 } isConstrained
This action checks to see if the point is database constrained. ParametersThis action has no parameters. ReturnsThis action returns a boolean. ExampleThis example checks to see if the point is database constrained. $surface is referencing an existing database surface. Code set point [pw::Point create] Output 1 |
This action creates a new database point object.
pw::Point create
This action sets the position of this database point.
$point setPoint point
This action sets the position of this database point to the average of the given points in cartesian space.
$point setAveragePoint points
This action gets the control point of this database point.
$point getPoint
This action gets the position in the defining space of the point at the given parameter or index.
$point getPosition ?< -parameter | -index > value?
This action gets the position of the point in model space at the given parameter or index
$point getXYZ ?< -parameter | -index > value?
This action gets the default projection direction for this point.
$point getDefaultProjectDirection
This action checks to see if the point is database constrained.
$point isConstrained