Class Clip_Point


  • public class Clip_Point
    extends Object
    Clip a (projected) Point that might stick out of the camera's view rectangle in the image plane.
    • Method Detail

      • clip

        public static Optional<Primitiveclip​(Model model,
                                               Point pt)
        If the Vertex used by the Point sticks out of the camera's view rectangle, then have the Point deleted from the model's primitive list.
        Parameters:
        model - Model that the Point pt comes from
        pt - Point to be clipped
        Returns:
        the clipped version of pt wrapped in an Optional object