Class GenericFace


  • public class GenericFace
    extends Face
    The GenericFace implementation is a type of Face that consist of abstract Surfaces and
    Curves.
    • Constructor Detail

      • GenericFace

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

        public GenericFace()
        Constructor.
      • GenericFace

        public GenericFace​(Face face)
        Copy constructor.
        Parameters:
        face - [in] other face to copy.
    • Method Detail

      • getCPtr

        public static long getCPtr​(GenericFace obj)
      • delete

        public void delete()
        Overrides:
        delete in class Face
      • surface

        public Surface surface()
        Description copied from class: Face
        Get the surface of the face.
        Overrides:
        surface in class Face
        Returns:
        a reference to the surface data.
      • curveCount

        public long curveCount()
        Description copied from class: Face
        Get the number of curves in the face.
        Overrides:
        curveCount in class Face
        Returns:
        the number of curves.
      • getCurve

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

        public void transform​(Vector3D P)
        rw::math::Vector3D<double>&)
        Overrides:
        transform in class Face
        Parameters:
        P - [in] translation vector.
      • transform

        public void transform​(Transform3D T)
        rw::math::Transform3D<>&)
        Overrides:
        transform in class Face
        Parameters:
        T - [in] transform.
      • setSurface

        public void setSurface​(SurfaceCPtr surface)
        Set surface.
        Parameters:
        surface - [in] the surface.
      • setSurface

        public void setSurface​(Surface surface)
        Set surface.
        Parameters:
        surface - [in] the surface.
      • setCurve

        public void setCurve​(long vertex,
                             CurveCPtr curve)
        Set curve (a curve has direction)
        Parameters:
        vertex - [in] the start vertex.
        curve - [in] the curve.
      • setVertex

        public void setVertex​(long index,
                              Vector3D vertex)
        Set vertex.
        Parameters:
        index - [in] vertex index to set.
        vertex - [in] the vertex point.