On 8/19/24 03:46, jaosch wrote:

My starting point is the following code:

Triangulation<2> my_triangulation;
GridGenerator::hyper_ball(my_triangulation);

Is there a built-in function to convert my_triangulation to type Triangulation<2,3> so I end up with a 2D surface in 3D space?

For some of the other functions in namespace GridGenerator, if you declare the triangulation as
  Triangulation<2,3> my_triangulation;
then everything just magically works. I recognize that GridGenerator::hyper_ball() is one of those functions that do not take a second template argument for spacedim!=dim.

Rather than think about how to work around this limitation, would you perhaps be interested in simply adding the spacedim argument to the implementation of this function and create a pull request that adds this functionality? In the end, all that needs to happen is that the last component of all vertex locations needs to be set to zero. We would, of course, be quite happy to walk you through the process of creating a pull request!

Best
 Wolfgang

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/d050a771-349b-494f-a897-4c33e1ca7d6f%40colostate.edu.

Reply via email to