| 1167 | Base::Vector3d DrawViewPart::getOriginalCentroid() const { return m_saveCentroid; } |
| 1168 | |
| 1169 | Base::Vector3d DrawViewPart::getCurrentCentroid() const |
| 1170 | { |
| 1171 | TopoDS_Shape shape = getSourceShape(); |
| 1172 | if (shape.IsNull()) { |
| 1173 | return Base::Vector3d(0.0, 0.0, 0.0); |
| 1174 | } |
| 1175 | gp_Ax2 cs = getProjectionCS(); |
| 1176 | gp_Pnt gCenter = ShapeUtils::findCentroid(shape, cs); |
| 1177 | return Base::convertTo<Base::Vector3d>(gCenter); |
| 1178 | } |
| 1179 | |
| 1180 | std::vector<DrawViewSection*> DrawViewPart::getSectionRefs() const |
| 1181 | { |
no test coverage detected