Home
Reply
Regular Visitor
tianxuefeng
Posts: 3

About HA_Render_Entity

 

Hi,

 

Sorry to bother you. I have some questions about ACIS Hoops bridge: HA_Render_Entity. As we know, this method first get the top owner of the entity you send and then use ConvertEntity() method to map ACIS entity and hoops geometry. Here assume I have a cuboid with six faces, if I offset one of these six faces, we know that it will change only five of these six faces. Then I just want to use HA_Render_Entity function to render the changed faces but not the whole body. What should I do? I tried to change the HA_Render_Entity function to let it not render the whole body but rather the entity(e.g. faces) I want to render. However failed. Do you have any suggestion? Thanks a lot.

 

Best regards,

T

Spatial Moderator
ybiyani
Posts: 222

Re: About HA_Render_Entity

Hello tianxuefeng,

 

Please review the following

 

1) http://doc.spatial.com/index.php/HOOPS/ACIS_Bridge#Mapping_of_ACIS_Entities_to_HOOPS_Geometry

2) http://doc.spatial.com/index.php/HOOPS/ACIS_Bridge#Setting_Rendering_Options_.28HA_Set_Rendering_Opt...

3) http://doc.spatial.com/qref/ACIS/html/group__ACISHISTORY.html#gbe15aa3b1b2678821bc8531d3c82e9bb

 

As you are making changes to model the best way is to render faces instead of whole body (see link 2) , get the modified faces (seel link 3) and call HA_Render_Entity on the modified faces.

 

I hope this helps.

 

Regards,

Yogesh

Regular Visitor
tianxuefeng
Posts: 3

About HA_Render_Entity

Hi,

 

Sorry to bother you. I have some questions about ACIS Hoops bridge: HA_Render_Entity. As we know, this method first get the top owner of the entity you send and then use ConvertEntity() method to map ACIS entity and hoops geometry. Here assume I have a cuboid with six faces, if I offset one of these six faces, we know that it will change only five of these six faces. Then I just want to use HA_Render_Entity function to render the changed faces but not the whole body. What should I do? I tried to change the HA_Render_Entity function to let it not render the whole body but rather the entity(e.g. faces) I want to render. However failed. Do you have any suggestion? Thanks a lot.

 

Best regards,

T

New Visitor
hanazono
Posts: 1

Re: About HA_Render_Entity

Hello,

 

Perhaps you should pay attention to another HA bridge method called "HA_Set_Render_Options", and pass a ha_render_options object which has been configured by your willing, especially the "SetMergeFacesMode" member function.

 

Good luck!

Jimmy