CAD Object Centers
Finding the center of a CAD object is a surprisingly complex operation. To illustrate let’s consider two examples: a simple isosceles triangle and a curved line (their bounding boxes are shown with dashed lines):
One can see that there is are significant differences between the different types of
centers. To allow the designer to choose the center that makes the most sense for the given
shape there are three possible values for the CenterOf
Enum:
Symbol |
1D |
2D |
3D |
Compound |
|
---|---|---|---|---|---|
CenterOf.BOUNDING_BOX |
□ |
✓ |
✓ |
✓ |
✓ |
CenterOf.GEOMETRY |
△ |
✓ |
✓ |
||
CenterOf.MASS |
○ |
✓ |
✓ |
✓ |
✓ |