Home
Reply
Regular Contributor
jineshmac
Posts: 48

Unable to draw STRAIGHTs

Hi,

 

I created a straight line segment using the following fragment of code:

 

SPAposition pos(10, 10, 10);
SPAunit_vector unitV(1, 0, 0);

straight stV(pos, unitV);

SPAinterval vInt(0.0, 10);

stV.limit(vInt);

STRAIGHT * STV = new STRAIGHT(stV);

 

When I call HA_Render_Entity(STV), nothing is displayed. 

Visibiity setting is: HC_Set_Visibility ("markers=on, lines=on, edges=on, faces=on");

 

I loaded some Acis models from sat files and they are being rendered as expected using HA_Render_Entity.

 

Can someone point out where am I mistaking?

 

Thanks,

Jinesh.

Regular Contributor
jineshmac
Posts: 48

Re: Unable to draw STRAIGHTs

Hi,

 

One needs to create an 'EDGE' from the 'STRAIGHT' by calling 'api_mk_ed_line'.  The EDGE can then be rendered.

 

Regards

jinesh