meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:design_guide_measurements [2023/06/11 01:05] JSCAD Editor |
en:design_guide_measurements [2023/06/11 01:10] (current) JSCAD Editor |
||
---|---|---|---|
Line 82: | Line 82: | ||
Measuring the epsilon of shapes is possible. Epsilon values are used in various functions to determine minimum distances between points, planes, etc. | Measuring the epsilon of shapes is possible. Epsilon values are used in various functions to determine minimum distances between points, planes, etc. | ||
+ | |||
+ | <code javascript> | ||
+ | let epsilon = measureEpsilon(sphere()) | ||
+ | </ | ||
+ | |||
+ | In addition, the combined epsilon for a group geometries can be measured. | ||
+ | |||
+ | <code javascript> | ||
+ | let groupEpsilon = measureAggregateEpsilon(sphere(), | ||
+ | </ | ||
=== Volume === | === Volume === | ||
Measuring the volume of a shape is possible. | Measuring the volume of a shape is possible. | ||
+ | |||
+ | <code javascript> | ||
+ | let volume = measureVolume(sphere()) | ||
+ | </ | ||
//Note: The volume of 2D shapes is always zero(0).// | //Note: The volume of 2D shapes is always zero(0).// | ||
+ | |||
+ | In addition, the total (aggregate) volume for the given geometries can be measured. | ||
+ | |||
+ | <code javascript> | ||
+ | let totalVolume = measureAggregateVolume(sphere(), | ||
+ | </ | ||
+ | |||
+ | //Note: This measurement will not account for overlapping geometry.// | ||
+ | |||
+ | |||
+ | |||