| Article | 70002639 |
| Type | Wish |
| Product | WebJS |
| Version | 1103 |
| Date Added | 2/25/2025 12:00:00 AM |
| Fixed | 11.4.1 (2/26/2025 12:00:00 AM) |
| Submitted by | efstathios tsoumas |
Summary
Support SmoothAngle for polyfaces in webcontrol
Solution
SmoothAngle supported in version 11.4.1
Controls the lighting smoothness of the object's neighboring faces.
Get/Set the default document SmoothAngle value as follow:
It can get a value in the range between 0 to 90 degrees and a spesial value of -1 which means the default document SmoothAngle will be used.
Note:SmoothAngle supported only with EnableWebGL as true which is the default.
var doc = vdcanvas.GetDocument();
var smoothangle = doc.GlobalRenderProperties.SmoothAngle;
-or-
doc.GlobalRenderProperties.SmoothAngle = 90;
Also you can set it separetatly for each of one of the following entities
Polyface, Circle, Arc , Polyline, Ellipse , Rect with Thickness != 0
If entitity.SmoothAngle is -1 or undefined wich is the default the the doc.GlobalRenderProperties.SmoothAngle is used
