Flow123d
release_3.0.0-968-gc87a28e79
|
Go to the documentation of this file.
20 #ifndef INTERSECTIONAUX_H_
21 #define INTERSECTIONAUX_H_
35 template<
unsigned int dimA,
unsigned int dimB>
56 unsigned int bulk_element_idx);
69 unsigned int size()
const;
84 template<
unsigned int dimAA,
unsigned int dimBB>
87 template<
unsigned int,
unsigned int>
93 template<
unsigned int dimA,
unsigned int dimB>
97 template<
unsigned int dimA,
unsigned int dimB>
101 template<
unsigned int dimA,
unsigned int dimB>
104 return i_points_[index]; }
107 template<
unsigned int dimA,
unsigned int dimB>
109 {
return i_points_.size(); }
111 template<
unsigned int dimA,
unsigned int dimB>
113 {
return component_element_idx_; }
115 template<
unsigned int dimA,
unsigned int dimB>
117 {
return bulk_element_idx_; }
119 template<
unsigned int dimA,
unsigned int dimB>
121 {
return ips_in_face_;}
123 template<
unsigned int dimA,
unsigned int dimB>
125 {
return n_duplicities_;}
127 template<
unsigned int dimA,
unsigned int dimB>
129 { n_duplicities_ = n_duplicities; }
131 template<
unsigned int dimA,
unsigned int dimB>
133 { ips_in_face_ = face_idx; }
const IntersectionPointAux< dimA, dimB > & operator[](unsigned int index) const
Returns intersection point of given index.
unsigned int component_ele_idx() const
Returns index of component element.
IntersectionAux()
Default constructor.
std::vector< IntersectionPointAux< dimA, dimB > > i_points_
Vector of internal intersection points.
friend std::ostream & operator<<(std::ostream &os, const IntersectionAux< dimAA, dimBB > &intersection)
Friend output operator.
void set_ips_in_face(unsigned int face_idx)
std::vector< IntersectionPointAux< dimA, dimB > > & points()
Returns intersection points by a reference.
unsigned int bulk_element_idx_
Index of intersecting element in the bulk.
unsigned int bulk_ele_idx() const
Returns index of bulk element.
void set_duplicities(unsigned int n_duplicities)
Internal auxiliary class represents an intersection point of simplex<N> and simplex<M>.
unsigned int ips_in_face_
Local index of face/side in which all IPs lie.
unsigned int component_element_idx_
Index of intersecting element in the component.
virtual ~IntersectionAux()
Destructor.
unsigned int ips_in_face() const
Returns idx of face when all IPs lie on it; -1 otherwise.
unsigned int size() const
Returns number of intersection points.
Internal auxiliary class representing intersection object of simplex<dimA> and simplex<dimB>.
unsigned int n_duplicities_
Number of duplicit intersections.
unsigned int duplicities() const