bugpyFormex - Bugs: bug #41404, Should .attrib be inherited just...


bug #41404: Should .attrib be inherited just like .prop?

Submitted by:  Benedict Verhegghe <bverheg>
Submitted on:  Thu 30 Jan 2014 02:04:10 PM UTC  
Category: RenderingSeverity: 1 - Wish
Item Group: Feature requestStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu 30 Jan 2014 02:04:10 PM UTC, original submission:

The script in https://savannah.nongnu.org/bugs/?40632#comment4 raises a question: Should the .attrib attribute of Geometry be inherited by the transformed Geometry, just like it is now the case with the .prop attribute?

Currently, as the script illustrates, even a simple transformation like a translation makes the .attrib be lost.
It would be nice to have this inherited, and it does not seem to be difficult to do, if the attribs are just constant rendering values for the object.

But what if the .attrib.color is an array of per-element colors or per-vertex colors and the transformation changes the number of elements? That would need some extra processing. A select operation could just select the appriopriate colors.

If adding the inheritence to Geometry seems simple enough, there will still be a lot of Formex/Mesh methods where .attrib will be lost. A good principle could be to inherit .attrib at all the same places where .prop is inherited.

So what do you think? Good idea?

Benedict Verhegghe <bverheg>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bverheg (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup