polliwog/plane/functions.py
def project_point_to_plane(points, plane_equations):
    """
    Project each point to the corresponding plane.
    """
    k = check_shape_any(points, (3,), (-1, 3), name="points")
    check_shape_any(
        plane_equations, (4,), (-1 if k is None else k, 4), name="plane_equations"
    )

    # Translate the point back to the plane along the normal.
    signed_distance = signed_distance_to_plane(points, plane_equations)
    normals, _ = normal_and_offset_from_plane_equations(plane_equations)

    if np.isscalar(signed_distance):
        return points - signed_distance * normals
    else:
        return points - signed_distance.reshape(-1, 1) * normals

    Project each point to the corresponding plane.
    
Project each point to the corresponding plane.
Project each point to the corresponding plane .
def project_point_to_plane(points, plane_equations):
    k = check_shape_any(points, (3,), (-1, 3), name="points")
    check_shape_any(
        plane_equations, (4,), (-1 if k is None else k, 4), name="plane_equations"
    )
    signed_distance = signed_distance_to_plane(points, plane_equations)
    normals, _ = normal_and_offset_from_plane_equations(plane_equations)
    if np.isscalar(signed_distance):
        return points - signed_distance * normals
    else:
        return points - signed_distance.reshape(-1, 1) * normals
def project_point_to_plane ( points , plane_equations ) : k = check_shape_any ( points , ( 3 , ) , ( - 1 , 3 ) , name = "points" ) check_shape_any ( plane_equations , ( 4 , ) , ( - 1 if k is None else k , 4 ) , name = "plane_equations" ) signed_distance = signed_distance_to_plane ( points , plane_equations ) normals , _ = normal_and_offset_from_plane_equations ( plane_equations ) if np . isscalar ( signed_distance ) : return points - signed_distance * normals else : return points - signed_distance . reshape ( - 1 , 1 ) * normals
Project each point to the corresponding plane.
Project each point to the corresponding plane .
"""
    Project each point to the corresponding plane.
    """ # Translate the point back to the plane along the normal.
points
plane_equations