Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Linux porting
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Shape.h
diff --git
a/src/GeomAPI/GeomAPI_Shape.h
b/src/GeomAPI/GeomAPI_Shape.h
index c7345461bd6a3bebfaea24509edfbb77ebc3c133..4e148978cd162140c5b9316ebd6ef0e5d89c9c6a 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Shape.h
+++ b/
src/GeomAPI/GeomAPI_Shape.h
@@
-21,6
+21,8
@@
#ifndef GeomAPI_Shape_H_
#define GeomAPI_Shape_H_
#ifndef GeomAPI_Shape_H_
#define GeomAPI_Shape_H_
+#include "GeomAPI_Dir.h"
+
#include <GeomAPI_Interface.h>
#include <memory>
#include <list>
#include <GeomAPI_Interface.h>
#include <memory>
#include <list>
@@
-142,6
+144,10
@@
public:
/// Returns true if min distance between shapes < tolerance.
GEOMAPI_EXPORT
bool isIntersect(const std::shared_ptr<GeomAPI_Shape> theShape) const;
/// Returns true if min distance between shapes < tolerance.
GEOMAPI_EXPORT
bool isIntersect(const std::shared_ptr<GeomAPI_Shape> theShape) const;
+
+ // Translates the shape along the direction for the given offset
+ GEOMAPI_EXPORT
+ void translate(const std::shared_ptr<GeomAPI_Dir> theDir, const double theOffset);
};
//! Pointer on list of shapes
};
//! Pointer on list of shapes