Hi
I wrote a code to implement a manifold of an ellipsoid surface embedded in 3d space using 6 chart manifolds corresponding to the 6 faces of a cube. So if the ellipsoid equation is $Ax^2 + By^2 + Cz^2 = R^2$, then I have the following equations:
z_plus(x, y) = sqrt(R^2 - Ax^2 - By^2) / C
z_minus(x, y) = - sqrt(R^2 - Ax^2 - By^2) / C
Similarly, I have analogous equations for x_plus(y, z), x_minus(y, z), y_plus(z, x), and y_plus(z, x).
1. I make an unrefined hyper_sphere<2,3> mesh which is just a cube.
2. Then I transform the sphere into an ellipsoid based on the values of A, B, and C.
3. I reset the SphericalManifold from the triangulation.
4. I detect each of the faces using the face centers and attach one of the six manifolds explained above to each of the faces.
5. Then I refine the mesh globally. The manifold id of the children faces should be inherited from the original 6 faces.
Expected result:
After a few global refinements, I should get something like an ellipsoid.
The result I get:
I have attached my code and the CMakeLists.txt. Please help me understand the error.
Regards,
Amit
The information contained in this electronic communication is intended solely for the individual(s) or entity to which it is addressed. It may contain proprietary, confidential and/or legally privileged information. Any review, retransmission, dissemination, printing, copying or other use of, or taking any action in reliance on the contents of this information by person(s) or entities other than the intended recipient is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us by responding to this email or telephone and immediately and permanently delete all copies of this message and any attachments from your system(s). The contents of this message do not necessarily represent the views or policies of BITS Pilani.