vrdRoundedEdges¶
-
class
vrdRoundedEdges
¶
(Inherits vrdSceneObject
)
This class is used for all rounded edges properties.
Summary¶
- Functions:
- getAngleLimit() → float
- getChamfer() → float
- getEdgeType() → vrdRoundedEdges.EdgeType
- getGroupId() → integer
- getMode() → vrdRoundedEdges.EdgeMode
- getQuality() → integer
- getRadius() → float
- setAngleLimit(value)
- setChamfer(value)
- setEdgeType(mode)
- setGroupId(value)
- setMode(mode)
- setQuality(value)
- setRadius(value)
Functions¶
-
vrdRoundedEdges.
getAngleLimit
()¶ Gets the angle limit.
Returns: Current used value for the angle limit Return type: float
-
vrdRoundedEdges.
getChamfer
()¶ Gets the chamfer.
Returns: Current used value for the chamfer Return type: float
-
vrdRoundedEdges.
getEdgeType
()¶ Gets the edge type.
Returns: Current used value for the edge type Return type: vrdRoundedEdges.EdgeType
-
vrdRoundedEdges.
getGroupId
()¶ Gets the group id.
Returns: Current used value for the group id Return type: integer
-
vrdRoundedEdges.
getMode
()¶ Gets the current edge mode.
Returns: Current used value for the edge mode Return type: vrdRoundedEdges.EdgeMode
-
vrdRoundedEdges.
getQuality
()¶ Gets the quality level.
Returns: Current used value for the quality Return type: integer
-
vrdRoundedEdges.
getRadius
()¶ Gets the radius.
Returns: Current used value for the radius Return type: float
-
vrdRoundedEdges.
setAngleLimit
(value)¶ Sets the angle limit. It limits the rounding effect to edges with an angle above the limit. If the angle between the current shading normal and the shading normal of the adjoining edge is smaller than the limit, no smoothing will be applied.
Parameters: value (float) – New value for the angle limit
-
vrdRoundedEdges.
setChamfer
(value)¶ Sets the chamfer value. It gives the edge a more chamfered appearance, instead of a perfectly round shape.
Parameters: value (float) – New value for the chamfer
-
vrdRoundedEdges.
setEdgeType
(mode)¶ Sets the type of edges that will be rounded. By default, convex and concave edges will be rounded. Choosing either convex or concave edges only can improve the performance of the rendering.
Parameters: mode (vrdRoundedEdges.EdgeType) – New value for the edge type
-
vrdRoundedEdges.
setGroupId
(value)¶ Sets the groupID for the rounded edge effect. Only objects with the same groupID will be considered for rounded edge smoothing.
Parameters: value (integer) – New value for the group id
-
vrdRoundedEdges.
setMode
(mode)¶ Sets whether edges should appear rounded in raytracing or not. Various options can be chosen: Off: Does not calculate the appearance of rounded edges. Same Geometry: Only edges between faces of the same geometry are rounded. Same Material: Only edges between faces with the same material are rounded. Same Group: Only edges between faces with materials belonging to the same edge group are rounded.
Parameters: mode (vrdRoundedEdges.EdgeMode) – New value for the edge mode
-
vrdRoundedEdges.
setQuality
(value)¶ Sets the quality level used to evaluate the nearest edges. Each quality level represents a multiple of 4 samples for estimating either convex or concave edges. A quality level of 1 will trace 4 rays to estimate convex edges and 4 rays to estimate concave edges. At quality level 1, the effect is also only evaluated for non-distributed rays, not rays originating from diffuse or glossy reflections. At higher quality levels, the effect is evaluated for one additional bounce.
Parameters: value (integer) – New value for the quality
-
vrdRoundedEdges.
setRadius
(value)¶ Sets the radius of rounded edge in world space.
Parameters: value (float) – New value for the radius