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)
 Location() = thePoint * (1.0 - theScale) + Location() * theScale.
 
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() [1/3]

cadex.Geom.Axis3d.Axis3d ( )
inline

Constructor.

◆ Axis3d() [2/3]

cadex.Geom.Axis3d.Axis3d ( cadex.Geom.Point theLocation,
cadex.Geom.Direction theAxis )
inline

Constructor.

◆ Axis3d() [3/3]

cadex.Geom.Axis3d.Axis3d ( cadex.Geom.Point theLocation,
cadex.Geom.Direction theAxis,
cadex.Geom.Direction theXRef )
inline

Constructor.

Member Function Documentation

◆ Axis()

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

Returns a Z-direction of the axis.

Examples
exploring/brep_geometry/Program.cs.

◆ IsRightHanded()

bool cadex.Geom.Axis3d.IsRightHanded ( )
inline

Returns true if the axis is right-handed.

◆ Location()

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

Returns an origin point.

Examples
exploring/brep_geometry/Program.cs.

◆ Scale()

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

Location() = thePoint * (1.0 - theScale) + Location() * theScale.

If theScale is less than zero than directions is reversed. Sets scale to axis.

◆ 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.

Examples
exploring/brep_geometry/Program.cs.