Point generation 2D

medianshape.simplicial.pointgen2d.sample_function(func_str, boundary_box, sample_size)[source]

Samples points of a function within the boundary box.

medianshape.simplicial.pointgen2d.sample_function_mesh(mesh, func_str, sample_size=None)[source]

Samples points of a function based on x-coordinates of points of the mesh given.

medianshape.simplicial.pointgen2d.sample_ellipse(a, b, sample_size=None)[source]

Samples points of an ellipse centered at the origin described by its major and minor axis.

medianshape.simplicial.pointgen2d.twisted_curves()[source]

Generates two twisted curves which intersect with each other.