![]() |
Reference documentation for deal.II version 8.4.2
|
#include <deal.II/opencascade/boundary_lib.h>
Public Member Functions | |
| DirectionalProjectionBoundary (const TopoDS_Shape &sh, const Tensor< 1, spacedim > &direction, const double tolerance=1e-7) | |
| virtual Point< spacedim > | project_to_manifold (const std::vector< Point< spacedim > > &surrounding_points, const Point< spacedim > &candidate) const |
Public Member Functions inherited from Boundary< dim, spacedim > | |
| virtual | ~Boundary () |
| virtual void | get_intermediate_points_on_line (const typename Triangulation< dim, spacedim >::line_iterator &line, std::vector< Point< spacedim > > &points) const |
| virtual void | get_intermediate_points_on_quad (const typename Triangulation< dim, spacedim >::quad_iterator &quad, std::vector< Point< spacedim > > &points) const |
| void | get_intermediate_points_on_face (const typename Triangulation< dim, spacedim >::face_iterator &face, std::vector< Point< spacedim > > &points) const |
| virtual Tensor< 1, spacedim > | normal_vector (const typename Triangulation< dim, spacedim >::face_iterator &face, const Point< spacedim > &p) const |
| virtual void | get_normals_at_vertices (const typename Triangulation< dim, spacedim >::face_iterator &face, FaceVertexNormals &face_vertex_normals) const |
| virtual Point< spacedim > | project_to_surface (const typename Triangulation< dim, spacedim >::line_iterator &line, const Point< spacedim > &candidate) const |
| virtual Point< spacedim > | project_to_surface (const typename Triangulation< dim, spacedim >::quad_iterator &quad, const Point< spacedim > &candidate) const |
| virtual Point< spacedim > | project_to_surface (const typename Triangulation< dim, spacedim >::hex_iterator &hex, const Point< spacedim > &candidate) const |
Public Member Functions inherited from FlatManifold< dim, spacedim > | |
| FlatManifold (const Point< spacedim > periodicity=Point< spacedim >(), const double tolerance=1e-10) | |
| virtual Point< spacedim > | get_new_point (const Quadrature< spacedim > &quad) const |
Public Member Functions inherited from Manifold< dim, spacedim > | |
| virtual | ~Manifold () |
| virtual Point< spacedim > | get_new_point_on_line (const typename Triangulation< dim, spacedim >::line_iterator &line) const |
| virtual Point< spacedim > | get_new_point_on_quad (const typename Triangulation< dim, spacedim >::quad_iterator &quad) const |
| virtual Point< spacedim > | get_new_point_on_hex (const typename Triangulation< dim, spacedim >::hex_iterator &hex) const |
| Point< spacedim > | get_new_point_on_face (const typename Triangulation< dim, spacedim >::face_iterator &face) const |
| Point< spacedim > | get_new_point_on_cell (const typename Triangulation< dim, spacedim >::cell_iterator &cell) const |
Public Member Functions inherited from Subscriptor | |
| Subscriptor () | |
| Subscriptor (const Subscriptor &) | |
| virtual | ~Subscriptor () |
| Subscriptor & | operator= (const Subscriptor &) |
| void | subscribe (const char *identifier=0) const |
| void | unsubscribe (const char *identifier=0) const |
| unsigned int | n_subscriptions () const |
| void | list_subscribers () const |
| DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects."<< "\"<< "(Additional information: "<< arg3<< ")\"<< "See the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "a lot more information on what this error means and "<< "how to fix programs in which it happens.") | |
| DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier <"<< arg2<< "> subscribes to this object of class "<< arg1<< ". Consequently, it cannot be unsubscribed.") | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| const TopoDS_Shape | sh |
| const Point< 3 > | direction |
| const double | tolerance |
Additional Inherited Members | |
Public Types inherited from Boundary< dim, spacedim > | |
| typedef Tensor< 1, spacedim > | FaceVertexNormals[GeometryInfo< dim >::vertices_per_face] |
Protected Member Functions inherited from Boundary< dim, spacedim > | |
| const std::vector< Point< 1 > > & | get_line_support_points (const unsigned int n_intermediate_points) const |
A Boundary object based on OpenCASCADE TopoDS_Shape where new points are first computed by averaging the surrounding points in the same way as FlatManifold does, and then projecting them onto the manifold along the direction specified at construction time using OpenCASCADE utilities.
This class makes no assumptions on the shape you pass to it, and the topological dimension of the Manifold is inferred from the TopoDS_Shape itself. In debug mode there is a sanity check to make sure that the surrounding points (the ones used in project_to_manifold()) actually live on the Manifold, i.e., calling OpenCASCADE::closest_point() on those points leaves them untouched. If this is not the case, an ExcPointNotOnManifold is thrown.
Notice that this type of Boundary descriptor may fail to give results if the triangulation to be refined is close to the boundary of the given TopoDS_Shape, or when the direction you use at construction time does not intersect the shape. An exception is thrown when this happens.
Definition at line 130 of file boundary_lib.h.
| OpenCASCADE::DirectionalProjectionBoundary< dim, spacedim >::DirectionalProjectionBoundary | ( | const TopoDS_Shape & | sh, |
| const Tensor< 1, spacedim > & | direction, | ||
| const double | tolerance = 1e-7 |
||
| ) |
Construct a Boundary object which will project points on the TopoDS_Shape sh, along the given direction.
Definition at line 85 of file boundary_lib.cc.
|
virtual |
Perform the actual projection onto the manifold. This function, in debug mode, checks that each of the surrounding_points is within tolerance from the given TopoDS_Shape. If this is not the case, an exception is thrown.
The projected point is computed using OpenCASCADE directional projection algorithms.
Reimplemented from FlatManifold< dim, spacedim >.
Definition at line 98 of file boundary_lib.cc.
|
private |
The topological shape which is used internally to project points. You can construct such a shape by calling the OpenCASCADE::read_IGES() function, which will create a TopoDS_Shape with the geometry contained in the IGES file.
Definition at line 161 of file boundary_lib.h.
|
private |
Direction used to project new points on the shape.
Definition at line 166 of file boundary_lib.h.
|
private |
Relative tolerance used by this class to compute distances.
Definition at line 171 of file boundary_lib.h.
1.8.12