[V8i C++] How to get normal direction of AccuDraw locked plane?

Hello,

I need to draw some geometry in my custom tool. I would like to place it on a plane determined by AccuDraw. How I can get this plane?

All the best

Wojciech

Parents Reply
  • Your tool should call mdlRMatrix_fromView and pass true for "allowConstruction".

    =---------------------------------------------------------------*//**
    * @Description Returns (copy of) the rotation matrix for a view or for the
    * current aux coordinate system.
    * Columns 0, 1, and 2 contain coordinates of the X, Y, Z global axes
    * as seen in the view. Rows 0, 1, and 2 contain
    * coordinates of the view X, Y, Z axes as seen from
    * the global system.
    * @param[out] rotMatrixP
    * @param[in] view view number
    * @param[in] allowConstruction if true, use aux coords
    * @ingroup mdlRMatrix
    * @bsimethod
    * @RequiredLibrary nativewindow.lib+--------------+--------------+---------------+----------------+-------------*/
    MSCORE_EXPORT void mdlRMatrix_fromView
    (
    RotMatrixP rotMatrixP,
    int view,
    bool allowConstruction
    );

    The priority is: AccuDraw if active > ACS if acs plane lock enabled > view orientation

    HTH

    -B



Children
No Data