Class FaceCPtr


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

      Constructors 
      Constructor Description
      FaceCPtr()
      Default constructor yielding a NULL-pointer.
      FaceCPtr​(long cPtr, boolean cMemoryOwn)  
      FaceCPtr​(Face ptr)
      Do not take ownership of ptr.

      ptr can be null.

      The constructor is implicit on purpose.
    • Constructor Detail

      • FaceCPtr

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

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

        public FaceCPtr​(Face ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(FaceCPtr obj)
      • delete

        public void delete()
      • deref

        public Face deref()
        The pointer stored in the object.
      • __ref__

        public Face __ref__()
        Dereferencing operator.
      • getDeref

        public Face getDeref()
        Member access operator.
      • equals

        public boolean equals​(Face p)
      • 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
      • surface

        public Surface surface()
        Get the surface of the face.
        Returns:
        a reference to the surface data.
      • curveCount

        public long curveCount()
        Get the number of curves in the face.
        Returns:
        the number of curves.
      • getCurve

        public Curve getCurve​(long i)
        Get a curve of the face.
        Parameters:
        i - [in] the curve index, which should be less than the number returned by
        curveCount().
        Returns:
        a reference to the curve data.
      • getTriMesh

        public TriMeshPtr getTriMesh​(boolean forceCopy)
        Create a TriMesh representation of the face.

        This function relies on the resolution set with setMeshResolution.
        The resolution is passed on to Curve::discretizeAdaptive and
        Surface::setDiscretizationResolution.

        Parameters:
        forceCopy - [in] (not currently used in default implementation)
        Returns:
        a new TriMesh.
      • getTriMesh

        public TriMeshPtr getTriMesh()
        Create a TriMesh representation of the face.

        This function relies on the resolution set with setMeshResolution.
        The resolution is passed on to Curve::discretizeAdaptive and
        Surface::setDiscretizationResolution.


        Returns:
        a new TriMesh.
      • extremums

        public pair_d_d extremums​(Vector3D dir)
        Find the extent of the surface along a specific direction.
        Parameters:
        dir - [in] a normalized direction vector.
        Returns:
        the minimum and maximum values along the given direction.