Radii attribute

Core SceneGraph API, Utilities, Factories etc.
Post Reply
User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Radii attribute

Post by steffen » Thu 7. Dec 2006, 17:12

Thilo is working on using jReality with polymake (They will publish a new release before christmas). He came up with the idea of interpreting the RADII attribute as a factor for the current pointRadius/tubeRadius, specifying the relative size of each element. Sounds like a good idea for me, but I think the attribute's name should change then.

Steffen.

User avatar
gunn
Posts: 323
Joined: Thu 14. Dec 2006, 09:56
Location: TU Berlin
Contact:

RADII attribute -- update

Post by gunn » Thu 15. Feb 2007, 13:06

I would like to propose that we make the default behavior be that the RADII attribute multiplies with the corresponding appearance attribute (POINT_RADIUS or TUBE_RADIUS) to give the real radius used. If a user doesn't want to have the appearance attribute play a role, all he has to do is set it to 1.0.

I would prefer this solution to introducing a new attribute with a name like RADIUS_FACTORS to have this multiplicative behavior. Having another attribute complicates life (unnecessarily in my view) in many writers and backends.
jReality core developer

User avatar
gunn
Posts: 323
Joined: Thu 14. Dec 2006, 09:56
Location: TU Berlin
Contact:

Post by gunn » Thu 1. Mar 2007, 11:36

At the jReality meeting yesterday (28.2.07) we discussed this issue again and came to the decision that the behavior should be multiplicative, but to make this clear, the vertex and edge attributes "RADII" should be renamed to "RELATIVE_RADII" to make clear that they are multiplied by the values coming from the Appearance attribute POINT_RADIUS and TUBE_RADIUS, respectively. I'm going to go ahead and make this change today.
jReality core developer

Post Reply