#define MY_BOX implPtr<Box>()
-//=================================================================================================
-GeomAPI_Box::GeomAPI_Box()
- : GeomAPI_Interface(new Box(std::shared_ptr<GeomAPI_Ax3>(new GeomAPI_Ax3), 0., 0., 0.))
-{
-}
-
//=================================================================================================
GeomAPI_Box::GeomAPI_Box(const std::shared_ptr<GeomAPI_Ax3>& theCorner,
const double theWidth,
class GeomAPI_Box : public GeomAPI_Interface
{
public:
- /// Default constructor
- GEOMAPI_EXPORT GeomAPI_Box();
-
/// Creation of torus defined by center point, direction, major and minor radii
GEOMAPI_EXPORT GeomAPI_Box(const std::shared_ptr<GeomAPI_Ax3>& theCorner,
const double theWidth,
return isAtLeastOne;
}
+// LCOV_EXCL_START
GeomAPI_Shape::ShapeType GeomAPI_Shape::typeOfCompoundShapes() const
{
const TopoDS_Shape& aShape = const_cast<GeomAPI_Shape*>(this)->impl<TopoDS_Shape>();
}
return (GeomAPI_Shape::ShapeType) aType;
}
+// LCOV_EXCL_STOP
// adds the nopt-compound elements recursively to the list
static void addSimpleToList(const TopoDS_Shape& theShape, NCollection_List<TopoDS_Shape>& theList)
return aMiddlePoint;
}
+// LCOV_EXCL_START
std::string GeomAPI_Shape::getShapeStream() const
{
std::ostringstream aStream;
BRepTools::Write(aShape, aStream);
return aStream.str();
}
+// LCOV_EXCL_STOP
GeomShapePtr GeomAPI_Shape::intersect(const GeomShapePtr theShape) const
{
def assertCone(theCone, theApex, theAxis, theSemiAngle, theRadius1, theRadius2, theHeight):
assert(theCone is not None)
+ assert(theCone.isSemiInfinite() == False)
+ assert(theCone.isInfinite() == False)
anApex = theCone.apex()
anAxis = theCone.axis()
assert(anApex.distance(theApex) < TOLERANCE), "({}, {}, {}) != expected ({}, {}, {})".format(anApex.x(), anApex.y(), anApex.z(), theApex.x(), theApex.y(), theApex.z())
def assertCylinder(theCylinder, theLocation, theAxis, theRadius, theHeight):
assert(theCylinder is not None)
+ assert(theCylinder.isInfinite() == False)
aLoc = theCylinder.location()
aDir = theCylinder.axis()
assert(aLoc.distance(theLocation) < TOLERANCE), "({}, {}, {}) != expected ({}, {}, {})".format(aLoc.x(), aLoc.y(), aLoc.z(), theLocation.x(), theLocation.y(), theLocation.z())