ModraUp Ruby API Documentation Ruby API Reference

Class: ModraUp::Axes

Inherits:
ModraUp::Entity show all

Overview

Read-only view of the current drawing axes, following the model's editing context.

Instance Method Summary # collapse

Inherited from ModraUp::Entity

Instance Method Details

axes.transformation ⇒ Geom::Transformation

Transformation from drawing axes to world coordinates, with the direction vector being a unit length.

Returns:

  • (Geom::Transformation)

axes.origin ⇒ Geom::Point3d

The origin of the current drawing coordinate axis.

Returns:

  • (Geom::Point3d)

axes.xaxis ⇒ Geom::Vector3d

The unit direction vector of the x-axis.

Returns:

  • (Geom::Vector3d)

axes.yaxis ⇒ Geom::Vector3d

The unit direction vector of the y-axis.

Returns:

  • (Geom::Vector3d)

axes.zaxis ⇒ Geom::Vector3d

The unit direction vector of the z-axis.

Returns:

  • (Geom::Vector3d)

axes.axes ⇒ Array<Geom::Vector3d>

Returns the red, green, and blue axis directions in sequence.

Returns:

  • (Array<Geom::Vector3d>)

axes.to_a ⇒ Array

Returns the origin and directions of the red, green, and blue axes in sequence.

Returns:

  • (Array)

axes.sketch_plane ⇒ Array<Float>

The coefficients of the four plane equations for the red-green axis plane.

Returns:

  • (Array<Float>)

axes.model ⇒ ModraUp::Model

The model it belongs to.

Returns:

  • (ModraUp::Model)

axes.parent ⇒ ModraUp::Model

The model it belongs to.

Returns:

  • (ModraUp::Model)

axes.valid? ⇒ Boolean

The model is still open.

Returns:

  • (Boolean)

axes.deleted? ⇒ Boolean

Whether the containing model is closed.

Returns:

  • (Boolean)