Attrib Promote
surface node
Promotes or demotes attributes from one geometry level to another.
See also: Attribute, Attrib Create
This provides a straightforward way to convert an attribute from one class to another. For example, a point attribute can be converted to a primitive attribute, using any one of a number of different merge methods.
For index attributes, the merge methods treat the attribute as a string. Average will perform median, and the other numeric methods will just resort to First Match.
For attributes with multiple components (such as vector), each merge is done on each component independently.
Parameters
|
Original Name |
This is the name of the attribute in the source class. Eg: “Cd” will pick color. |
||||||||||||||||||||
|
Original Class |
This is the class which the attribute starts in. It can be one of point, primitive, detail, or vertex. |
||||||||||||||||||||
|
New Class |
This is the class to which the attribute should be promoted. It must be different than Original Class or a warning is raised and nothing is done. |
||||||||||||||||||||
|
Promotion Method |
Whenever there is more than one attribute in the original class which matches a single entity in the new class, some method must be used to determine the new value. For example, if converting from point attribute to primitive attribute, there will be many points corresponding to a single polygon.
|
||||||||||||||||||||
|
Change New Name |
If not set, the new attribute name will match the original name. |
||||||||||||||||||||
|
New Name |
The new name for the attribute if Change New Name is not set. |
||||||||||||||||||||
|
Delete Original |
If set, the original is deleted after promotion. Note that in some cases, such as promoting a vertex attribute to a point attribute of the same name, the original will always be deleted. To avoid this, rename the attribute when promoting. |