File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ class Edge3 : public Edge
166166 */
167167 virtual Real volume () const override ;
168168
169+ virtual Point side_vertex_average_normal (const unsigned int s) const override final ;
170+
169171 /* *
170172 * \returns A bounding box (not necessarily the minimal bounding box)
171173 * containing the edge.
Original file line number Diff line number Diff line change @@ -265,6 +265,14 @@ Real Edge3::volume () const
265265}
266266
267267
268+ Point
269+ Edge3 ::side_vertex_average_normal (const unsigned int s ) const
270+ {
271+ libmesh_assert_less (s , 2 );
272+ libmesh_assert_equal_to (this -> mapping_type (), LAGRANGE_MAP );
273+ return (s == 0 ) ? (this -> point (0 ) - this -> point (2 )).unit () : (this -> point (1 ) - this -> point (2 )).unit ();
274+ }
275+
268276
269277BoundingBox Edge3 ::loose_bounding_box () const
270278{
You can’t perform that action at this time.
0 commit comments