89template <
class T,
class S>
void export_Geom_2d(py::module &m,
const char *name)
91 py::classh<T, Geometry2D>(m, name)
92 .def(py::init<>(&Geometry_Init<T, S>), py::arg(
"id"),
93 py::arg(
"segments") = py::list())
94 .def(py::init<>(&Geometry_Init_Curved<T, S>), py::arg(
"id"),
95 py::arg(
"segments"), py::arg(
"curve"));
145 py::classh<Geometry1D, Geometry>(m,
"Geometry1D");
146 py::classh<Geometry2D, Geometry>(m,
"Geometry2D")
148 py::return_value_policy::reference);
149 py::classh<Geometry3D, Geometry>(m,
"Geometry3D");
152 py::classh<PointGeom, Geometry>(m,
"PointGeom")
153 .def(py::init<>(&
PointGeom_Init), py::arg(
"coordim"), py::arg(
"id"),
154 py::arg(
"x"), py::arg(
"y"), py::arg(
"z"))
158 py::classh<SegGeom, Geometry>(m,
"SegGeom")
159 .def(py::init<>(&
SegGeom_Init), py::arg(
"id"), py::arg(
"coordim"),
160 py::arg(
"points") = py::list(),
164 export_Geom_2d<TriGeom, SegGeom>(m,
"TriGeom");
165 export_Geom_2d<QuadGeom, SegGeom>(m,
"QuadGeom");
166 export_Geom_3d<TetGeom, TriGeom>(m,
"TetGeom");
167 export_Geom_3d<PrismGeom, Geometry2D>(m,
"PrismGeom");
168 export_Geom_3d<PyrGeom, Geometry2D>(m,
"PyrGeom");
169 export_Geom_3d<HexGeom, QuadGeom>(m,
"HexGeom");
CurveSharedPtr GetCurve()
CurveSharedPtr GetCurve()
std::shared_ptr< Curve > CurveSharedPtr