mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'distance_of_shapes' into 'master'
[occ] add Distance of shapes See merge request jschoeberl/netgen!457
This commit is contained in:
commit
72103d9bbc
@ -21,6 +21,7 @@
|
||||
#include <BRepBuilderAPI_MakeVertex.hxx>
|
||||
#include <BRepBuilderAPI_MakeWire.hxx>
|
||||
#include <BRepBuilderAPI_Transform.hxx>
|
||||
#include <BRepExtrema_DistShapeShape.hxx>
|
||||
#include <BRepFilletAPI_MakeChamfer.hxx>
|
||||
#include <BRepFilletAPI_MakeFillet.hxx>
|
||||
#include <BRepGProp.hxx>
|
||||
@ -1018,6 +1019,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
|
||||
.def("Identify", OCCGeometry::IdentifyFaces, "Identify faces",
|
||||
py::arg("from"), py::arg("to"), py::arg("name"), py::arg("type")=Identifications::PERIODIC)
|
||||
|
||||
.def("Distance", [](const TopoDS_Shape& self,
|
||||
const TopoDS_Shape& other)
|
||||
{
|
||||
return BRepExtrema_DistShapeShape(self, other).Value();
|
||||
})
|
||||
|
||||
.def("Triangulation", [](const TopoDS_Shape & shape)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user