meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:design_guide_2d_primitives [2020/11/28 02:49]
JSCAD Editor created
en:design_guide_2d_primitives [2020/11/30 04:58] (current)
JSCAD Editor
Line 9: Line 9:
 === Resolution of Shapes === === Resolution of Shapes ===
  
-All rounded shapes have a ''resolution'' option which controls tesselation. If ''resolution'' is set to 8, then 8 polygons are used to create 360 degrees of revolution.+All rounded shapes have a ''segments'' option which controls tessellation. If ''segments'' is set to 8, then 8 segments are used to create PI * 2 radians of revolution. If the ''segments'' option is omitted, the default value is used.
  
-This allows each design to control the amount of detail present, but beware that calculations and rendering time will also increase. For example, the number of polygons increases quickly with each increase of the ''resolution'' for circles. +This allows each design to control the amount of detail present, but beware that calculations and rendering time will also increase. For example, the number of polygons increases quadratically with each increase of the ''segments'' for spheres.
- +
-EXAMPLE +
- +
-If the ''resolution'' option is omitted, the following resolution is used. +
-  * CSG.defaultResolution2D = 32 +
- +
-OpenSCAD like functions support the ''fn'' parameter, which is the same as ''resolution''.+
  
 {{page>design_guide_rectangle}} {{page>design_guide_rectangle}}
  
-{{page>design_guide_circle}}+{{page>design_guide_ellipse}}
  
 {{page>design_guide_polygon}} {{page>design_guide_polygon}}
 +
 +{{page>design_guide_star}}