Brutha wrote:One question though: I'd quite like to be able to get perspective views as well. Does TechDraw use an underlying library of some sort for generating the image? If that code has the ability to give perspective views I might invest a bit of time to see if I can get that working.
We use OpenCascade (also OCC,OCE) to project the view and remove the hidden lines.
Code: Select all
//! Creates an axonometric projector. <CS> is the <br>
//! viewing coordinate system. <br>
Standard_EXPORT HLRAlgo_Projector(const gp_Ax2& CS);
//! Creates a perspective projector. <CS> is the <br>
//! viewing coordinate system. <br>
Standard_EXPORT HLRAlgo_Projector(const gp_Ax2& CS,const Standard_Real Focus);
TechDraw::GeometryObject uses the first form. Would be worth playing with the second form.
Can always use another coder!
wf