|
From: Sauro A. <sag...@in...> - 2007-10-13 08:25:38
|
> > >I don't understand why you need custom attributes, since they cannot >affect the rendering. The custom attributes are for picking, selecting and modify. The model is generated from an architectural model where the basic elements are walls, roofs, windows etc. When the program generates the model, adds a custom attribute with some information to retrieve the original elements (layer, type of element and an index). When the user click on the model in selection mode, the attribute indexes to the original element, the program generate a little model of it and the user can drag, double click, change the dimension etc. >You could modify my programs to preserve the custom attributes. Or >perhaps you could keep the original geometry around in a display >group marked invisible. > Yes, I could save 2 different models, an optimized model for a fast navigation and the original model for picking, selecting and modifying. The other way could be to modify your optimizing code to copy the custom attributes of polygon and general polygons to the faces attributes of the meshes. What part of the code should I look for this modification? Thanks again. Sauro -- ----------------------------------------------------------------------------- _ ___ |_| __| Interstudio S.r.l. Tel + 39 0573 99291 Fax + 39 0573 992930 | |__ | Piazza Monteoliveto 6a http://www.interstudio.net |_____| I-51100 Pistoia Italy mailto:int...@in... ----------------------------------------------------------------------------- |