45 |
//! Prints the Difference informations using the stream \a s. |
//! Prints the Difference informations using the stream \a s. |
46 |
std::ostream& put(std::ostream& s) const; |
std::ostream& put(std::ostream& s) const; |
47 |
|
|
|
/*! |
|
|
Compute the distance to the face of the Difference. |
|
|
\warning Not implemented. |
|
|
*/ |
|
|
inline const TinyVector<3> _distance(const Vertex& V) const |
|
|
{ |
|
|
fferr(2) << '\n' << __FILE__ << ':' << __LINE__ |
|
|
<< ':' << "Not implemented\n"; |
|
|
std::exit(1); |
|
|
return V; |
|
|
}; |
|
|
|
|
48 |
public: |
public: |
49 |
|
|
|
/*! |
|
|
Computes the vector \f$ \overrightarrow{WV} \f$ where \em W the closest |
|
|
point of the surface of the Difference to a given \a \em V and which norm is |
|
|
1. If W is not on an edge or a corner WV is the external normal to the |
|
|
Difference. |
|
|
*/ |
|
|
inline const TinyVector<3> normal(const Vertex& V) const; |
|
|
|
|
50 |
//! Adds the shape \a O inside the Difference. |
//! Adds the shape \a O inside the Difference. |
51 |
inline void AddObject(const Object& O); |
inline void AddObject(const Object& O); |
52 |
|
|
104 |
return inside; |
return inside; |
105 |
} |
} |
106 |
|
|
|
/*! Computes the vector \f$ \overrightarrow{WV} \f$ where \em W the closest |
|
|
point of the surface of the Difference to a given \a \em V and which norm is |
|
|
1. If W is not on an edge or a corner WV is the external normal to the |
|
|
Difference. |
|
|
\warning not implemented. |
|
|
*/ |
|
|
inline const TinyVector<3> Difference::normal(const Vertex& V) const |
|
|
{ |
|
|
fferr(2) << __FILE__ << ':' << __LINE__ |
|
|
<< ':' << "Not implemented\n"; |
|
|
std::exit(1); |
|
|
return V; |
|
|
} |
|
|
|
|
|
|
|
107 |
#endif // DIFFERENCE_HPP |
#endif // DIFFERENCE_HPP |
108 |
|
|