Home
Reply
Contributor
bryn
Posts: 29

Creating new entity type, which knows its bounding box

Hi

 

I have implemented a custom ENTITY type, derived from ENTITY_XYZ, which has data (geometry) and attributes attached.

 

How can I get the function api_get_entity_box to return the correct bounding box for my entity type?

Is there a function which I can override, or should I attach a dummy entity, which has the same bounding box?

 

 

I looked at the documentation on deriving custom entity classes, but could not figure out how this could be done.

 

Thanks for any suggestions!

 

Best regards

Bryn