Hide menu
Loading...
Searching...
No Matches
cadex.Geom.Axis3d Class Reference

Defines a right-handed or left-handed axis in 3D. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Axis3d (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Axis3d ()
 Constructor.
 
 Axis3d (cadex.Geom.Point theLocation, cadex.Geom.Direction theAxis)
 Constructor.
 
 Axis3d (cadex.Geom.Point theLocation, cadex.Geom.Direction theAxis, cadex.Geom.Direction theXRef)
 Constructor.
 
cadex.Geom.Point Location ()
 Returns an origin point.
 
cadex.Geom.Direction Axis ()
 Returns a Z-direction of the axis.
 
cadex.Geom.Direction XDirection ()
 Returns a X-direction of the axis.
 
cadex.Geom.Direction YDirection ()
 Returns a Y-direction of the axis placement.
 
bool IsRightHanded ()
 Returns true if the axis is right-handed.
 
void Reverse ()
 
cadex.Geom.Axis3d Reversed ()
 
void Transform (cadex.Geom.Transformation theTransformation)
 
cadex.Geom.Axis3d Transformed (cadex.Geom.Transformation theTransformation)
 
void Scale (cadex.Geom.Point thePoint, double theScale)
 Sets scale to axis.
 
cadex.Geom.Axis3d Scaled (cadex.Geom.Point thePoint, double theScale)
 
void Rotate (cadex.Geom.Axis1d theAxis, double theAngle)
 
cadex.Geom.Axis3d Rotated (cadex.Geom.Axis1d theAxis, double theAngle)
 
void Translate (cadex.Geom.Vector theVector)
 
cadex.Geom.Axis3d Translated (cadex.Geom.Vector theVector)
 
void Mirror (cadex.Geom.Point thePoint)
 
void Mirror (cadex.Geom.Axis1d theAxis)
 
void Mirror (cadex.Geom.Axis3d theAxis)
 
cadex.Geom.Axis3d Mirrored (cadex.Geom.Point thePoint)
 
cadex.Geom.Axis3d Mirrored (cadex.Geom.Axis1d theAxis)
 
cadex.Geom.Axis3d Mirrored (cadex.Geom.Axis3d theAxis)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Defines a right-handed or left-handed axis in 3D.

An axis is defined similar to Axis2d, however its directions can be reversed independently.

The following images depict examples of right- and left-handed axis:

Axis3d (right-handed)
Axis3d (left-handed)
Examples
exploring/brep_geometry/Program.cs.

Constructor & Destructor Documentation

◆ Axis3d()

cadex.Geom.Axis3d.Axis3d ( )
inline

Constructor.

Creates an axis from X-direction (1., 0., 0.), Y-direction (0., 1., 0.) and Z-direction (0., 0., 1.).

Member Function Documentation

◆ Axis()

cadex.Geom.Direction cadex.Geom.Axis3d.Axis ( )
inline

Returns a Z-direction of the axis.

See also
XDirection(), YDirection().
Examples
exploring/brep_geometry/Program.cs.

◆ IsRightHanded()

bool cadex.Geom.Axis3d.IsRightHanded ( )
inline

Returns true if the axis is right-handed.

Returns true if (XDirection() ^ YDirection()) * ZDirection() > 0.

◆ Location()

cadex.Geom.Point cadex.Geom.Axis3d.Location ( )
inline

Returns an origin point.

Returns the value specified in the constructor.

Examples
exploring/brep_geometry/Program.cs.

◆ Scale()

void cadex.Geom.Axis3d.Scale ( cadex.Geom.Point thePoint,
double theScale )
inline

Sets scale to axis.

Location() = thePoint * (1.0 - theScale) + Location() * theScale. If theScale is less than zero than directions is reversed.

◆ XDirection()

cadex.Geom.Direction cadex.Geom.Axis3d.XDirection ( )
inline

Returns a X-direction of the axis.

See also
Axis(), YDirection().
Examples
exploring/brep_geometry/Program.cs.

◆ YDirection()

cadex.Geom.Direction cadex.Geom.Axis3d.YDirection ( )
inline

Returns a Y-direction of the axis placement.

See also
Axis(), XDirection().
Examples
exploring/brep_geometry/Program.cs.