Class GenericFaceCPtr


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

      • GenericFaceCPtr

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

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

        public GenericFaceCPtr​(GenericFace ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

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

        public GenericFace __ref__()
        Dereferencing operator.
      • getDeref

        public GenericFace getDeref()
        Member access operator.
      • 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()
      • curveCount

        public long curveCount()
      • getCurve

        public Curve getCurve​(long i)
      • 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.