AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
GAx1 () | |
GAx1 (GPnt theP, GDir theV) | |
void | SetDirection (GDir theV) |
void | SetLocation (GPnt theP) |
GDir | Direction () |
GPnt | Location () |
boolean | IsCoaxial (GAx1 Other, double AngularTolerance, double LinearTolerance) |
boolean | IsNormal (GAx1 theOther, double theAngularTolerance) |
boolean | IsOpposite (GAx1 theOther, double theAngularTolerance) |
boolean | IsParallel (GAx1 theOther, double theAngularTolerance) |
double | Angle (GAx1 theOther) |
void | Reverse () |
GAx1 | Reversed () |
void | Mirror (GPnt P) |
GAx1 | Mirrored (GPnt P) |
void | Mirror (GAx1 A1) |
GAx1 | Mirrored (GAx1 A1) |
void | Mirror (GAx2 A2) |
GAx1 | Mirrored (GAx2 A2) |
void | Rotate (GAx1 theA1, double theAngRad) |
GAx1 | Rotated (GAx1 theA1, double theAngRad) |
void | Scale (GPnt theP, double theS) |
GAx1 | Scaled (GPnt theP, double theS) |
void | Transform (GTrsf theT) |
GAx1 | Transformed (GTrsf theT) |
void | Translate (GVec theV) |
GAx1 | Translated (GVec theV) |
void | Translate (GPnt theP1, GPnt theP2) |
GAx1 | Translated (GPnt theP1, GPnt theP2) |
Describes an axis in 3D space. An axis is defined by: - its origin (also referred to as its "Location point"), and - its unit vector (referred to as its "Direction" or "main Direction"). An axis is used: - to describe 3D geometric entities (for example, the axis of a revolution entity). It serves the same purpose as the STEP function "axis placement one axis", or - to define geometric transformations (axis of symmetry, axis of rotation, and so on). For example, this entity can be used to locate a geometric entity or to define a symmetry axis.
GAx1.GAx1 | ( | ) |
Creates an axis object representing Z axis of the reference coordinate system.
double GAx1.Angle | ( | GAx1 | theOther | ) |
Computes the angular value, in radians, between this.Direction() and theOther.Direction(). Returns the angle between 0 and 2*PI radians.
GDir GAx1.Direction | ( | ) |
Returns the direction of <me>.
boolean GAx1.IsCoaxial | ( | GAx1 | Other, |
double | AngularTolerance, | ||
double | LinearTolerance | ||
) |
Returns True if : . the angle between <me> and <Other> is lower or equal to <AngularTolerance> and . the distance between <me>.Location() and <Other> is lower or equal to <LinearTolerance> and . the distance between <Other>.Location() and <me> is lower or equal to LinearTolerance.
boolean GAx1.IsNormal | ( | GAx1 | theOther, |
double | theAngularTolerance | ||
) |
Returns True if the direction of this and another axis are normal to each other. That is, if the angle between the two axes is equal to Pi/2. Note: the tolerance criterion is given by theAngularTolerance.
boolean GAx1.IsOpposite | ( | GAx1 | theOther, |
double | theAngularTolerance | ||
) |
Returns True if the direction of this and another axis are parallel with opposite orientation. That is, if the angle between the two axes is equal to Pi. Note: the tolerance criterion is given by theAngularTolerance.
boolean GAx1.IsParallel | ( | GAx1 | theOther, |
double | theAngularTolerance | ||
) |
Returns True if the direction of this and another axis are parallel with same orientation or opposite orientation. That is, if the angle between the two axes is equal to 0 or Pi. Note: the tolerance criterion is given by theAngularTolerance.
GPnt GAx1.Location | ( | ) |
Returns the location point of <me>.
void GAx1.Mirror | ( | GAx1 | A1 | ) |
Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and assigns the result to this axis.
void GAx1.Mirror | ( | GAx2 | A2 | ) |
Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement <A2> locates the plane of the symmetry : (Location, XDirection, YDirection) and assigns the result to this axis.
void GAx1.Mirror | ( | GPnt | P | ) |
Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and assigns the result to this axis.
Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and creates a new axis.
Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement <A2> locates the plane of the symmetry : (Location, XDirection, YDirection) and creates a new axis.
Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and creates a new axis.
void GAx1.Reverse | ( | ) |
Reverses the unit vector of this axis and assigns the result to this axis.
GAx1 GAx1.Reversed | ( | ) |
Reverses the unit vector of this axis and creates a new one.
void GAx1.Rotate | ( | GAx1 | theA1, |
double | theAngRad | ||
) |
Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and assigns the result to this axis.
Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and creates a new one.
void GAx1.Scale | ( | GPnt | theP, |
double | theS | ||
) |
Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and assigns the result to this axis.
Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and creates a new axis.
void GAx1.SetDirection | ( | GDir | theV | ) |
Assigns V as the "Direction" of this axis.
void GAx1.SetLocation | ( | GPnt | theP | ) |
Assigns P as the origin of this axis.
void GAx1.Transform | ( | GTrsf | theT | ) |
Applies the transformation theT to this axis and assigns the result to this axis.
Applies the transformation theT to this axis and creates a new one. Translates an axis plaxement in the direction of the vector <V>. The magnitude of the translation is the vector's magnitude.
Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and assigns the result to this axis.
void GAx1.Translate | ( | GVec | theV | ) |
Translates this axis by the vector theV, and assigns the result to this axis.
Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and creates a new one.