triangulation.vertices_used[next_unused_vertex] = true;
// Ask the manifold where to put the new point. To
- // maintain backward compatibility, if the line does
- // not have a manifold id, query the cell boundary
- // instead
+ // maintain backward compatibility, in codimension
+ // one if the line does not have a manifold id,
+ // query the cell boundary instead
get_default_points_and_weights(sp, wp, line);
if(dim < spacedim && line->manifold_id() == numbers::invalid_manifold_id)
triangulation.vertices[next_unused_vertex] =
else
triangulation.vertices[next_unused_vertex] =
line->get_manifold().get_new_point(sp, wp);
-
-// if (spacedim == dim)
-// {
- // for the case of a domain
- // in an equal-dimensional
- // space we only have to
- // treat boundary lines
- // differently; for interior
- // lines we can compute the
- // midpoint as the mean of
- // the two vertices:
-// if (line->at_boundary())
-// triangulation.vertices[next_unused_vertex]
-// = line->get_boundary().get_new_point_on_line(line);
-// triangulation.get_boundary(line->boundary_indicator())
-// .get_new_point_on_line (line);
-// else
-// triangulation.vertices[next_unused_vertex]
-// = (line->vertex(0) + line->vertex(1)) / 2;
-// }
-// else
- // however, if spacedim>dim, we
- // always have to ask the
- // boundary object for its
-// // answer
-// triangulation.vertices[next_unused_vertex]
-// = triangulation.get_boundary(line->user_index()).get_new_point_on_line (line);
// now that we created
// the right point, make
triangulation.vertices[next_unused_vertex] =
line->get_manifold().get_new_point(sp, wp);
-
-// if (line->at_boundary())
-// triangulation.vertices[next_unused_vertex]
-// = triangulation.get_boundary(line->boundary_indicator()).get_new_point_on_line (line);
-// else
-// triangulation.vertices[next_unused_vertex]
-// = (line->vertex(0) + line->vertex(1)) / 2;
-
// now that we created
// the right point, make
// up the two child lines
get_default_points_and_weights(sp,wp,face);
const Point<spacedim> new_bound
= face->get_manifold().get_new_point(sp,wp);
-// triangulation.get_boundary(face->boundary_indicator())
-// .get_new_point_on_face (face);
// to check it,
// transform to the
// unit cell with