Axis visibility in a drawing view
Hello
Let me give you some hint of what need to be achieved for Axis visibility in drawing view.
Consider a simple part and it has three planes A, B and C. These planes are parallel to front, top and side plane of model.Now if a view is created for this part into drawing, only two panes are visible. This can be identified as below:
* consider view transformation matrix (Tv)
* consider sheet transformation matrix (Ts)
* consider a vector representing normal to plane (Vp) . This can be achieved getting geomdata of surface (plane is surface only) and finding its normal from geom data
* Transfer Vp with respect to Tv
* Transfer modified Vp into last step with respect to Ts and call this vector as Final Vp i.e. FVp
* z axis is vector is 0,0,1 and multiply this Z axis vector to FVp so that we can get dot product of two vectors. If product is zero plane would be visible into view.
Similar logic is required for Axis to be visible into view or not. Confusion is that how to find normal of axis like normal to plane we did for the case of plane.
Any idea is of great help.
Thanks in advance.
Regards
Ketan

