Class ImplicitSurfaceCPtr


  • public class ImplicitSurfaceCPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • ImplicitSurfaceCPtr

        public ImplicitSurfaceCPtr​(long cPtr,
                                   boolean cMemoryOwn)
      • ImplicitSurfaceCPtr

        public ImplicitSurfaceCPtr()
        Default constructor yielding a NULL-pointer.
      • ImplicitSurfaceCPtr

        public ImplicitSurfaceCPtr​(ImplicitSurface ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • SurfaceEqual

        public boolean SurfaceEqual​(Surface surface,
                                    double threshold)
      • insideTrimmingRegion

        public boolean insideTrimmingRegion​(Vector3D P)
        Check if point, P, on surface lies inside the trimming region.
        Parameters:
        P - [in] the point to check.
        Returns:
        true if the points lies inside the trimming region.
      • reuseTrimmingRegions

        public void reuseTrimmingRegions​(ImplicitSurfacePtr surface)
        Let other surface reuse this surfaces trimming regions,
        if there are identical region definitions.

        This allows for some implementations to save a small amount of memory.
        Parameters:
        surface - [in/out] the other surface.