ddg.datastructures.nets.net_generators.spheres_and_circles module
- ddg.datastructures.nets.net_generators.spheres_and_circles.circle(center, radius=1, normals=None)[source]
Function to create a SmoothNet representing a circle embedded in d-dimensional Euclidean space.
- Parameters:
- center: np.array of shape (d,)
Center of the circle.
- radius: float (default=1)
Radius of the circle.
- normals: np.array of shape (n, d) (default=None)
Normals of the circle that determine the orthogonal complement of the subspace containing the circle. If None are given the orthogonal complement will be determined by the dimension of the center and its normals consist of unit normal vectors.
- Returns:
- ddg.SmoothNet
- ddg.datastructures.nets.net_generators.spheres_and_circles.sphere(center, radius=1)[source]
Function to create a SmoothNet representing a 2d sphere embedded in 3d Euclidean space.
- Parameters:
- center: np.array of shape (3,)
Center of the sphere.
- radius: float (default=1)
Radius of the sphere.
- Returns:
- ddg.SmoothNet