pygeo/parameterization/DVGeo.py
def addPointSet(self, points, ptName, origConfig=True, **kwargs):
        """
        Add a set of coordinates to DVGeometry

        The is the main way that geometry, in the form of a coordinate
        list is given to DVGeoemtry to be manipulated.

        Parameters
        ----------
        points : array, size (N,3)
            The coordinates to embed. These cordinates *should* all
            project into the interior of the FFD volume.
        ptName : str
            A user supplied name to associate with the set of
            coordinates. This name will need to be provided when
            updating the coordinates or when getting the derivatives
            of the coordinates.
        origConfig : bool
            Flag determine if the coordinates are projected into the
            undeformed or deformed configuration. This should almost
            always be True except in circumstances when the user knows
            exactly what they are doing."""

        # save this name so that we can zero out the jacobians properly
        self.ptSetNames.append(ptName)
        self.zeroJacobians([ptName])
        self.nPts[ptName] = None

        points = np.array(points).real.astype("d")
        self.points[ptName] = points

        # Ensure we project into the undeformed geometry
        if origConfig:
            tmpCoef = self.FFD.coef.copy()
            self.FFD.coef = self.origFFDCoef
            self.FFD._updateVolumeCoef()

        # Project the last set of points into the volume
        if self.isChild:
            self.FFD.attachPoints(self.points[ptName], ptName, interiorOnly=True, **kwargs)
        else:
            self.FFD.attachPoints(self.points[ptName], ptName, interiorOnly=False)

        if origConfig:
            self.FFD.coef = tmpCoef
            self.FFD._updateVolumeCoef()

        # Now embed into the children:
        for child in self.children:
            child.addPointSet(points, ptName, origConfig, **kwargs)

        self.FFD.calcdPtdCoef(ptName)
        self.updated[ptName] = False

        Add a set of coordinates to DVGeometry

        The is the main way that geometry, in the form of a coordinate
        list is given to DVGeoemtry to be manipulated.

        Parameters
        ----------
        points : array, size (N,3)
            The coordinates to embed. These cordinates *should* all
            project into the interior of the FFD volume.
        ptName : str
            A user supplied name to associate with the set of
            coordinates. This name will need to be provided when
            updating the coordinates or when getting the derivatives
            of the coordinates.
        origConfig : bool
            Flag determine if the coordinates are projected into the
            undeformed or deformed configuration. This should almost
            always be True except in circumstances when the user knows
            exactly what they are doing.
Add a set of coordinates to DVGeometry
The is the main way that geometry, in the form of a coordinate
list is given to DVGeoemtry to be manipulated.

Parameters

points : array, size (N,3)
The coordinates to embed. These cordinates *should* all
project into the interior of the FFD volume.
ptName : str
A user supplied name to associate with the set of
coordinates. This name will need to be provided when
updating the coordinates or when getting the derivatives
of the coordinates.
origConfig : bool
Flag determine if the coordinates are projected into the
undeformed or deformed configuration. This should almost
always be True except in circumstances when the user knows
exactly what they are doing.
Add a set of coordinates to DVGeometry The is the main way that geometry in the form of a coordinate list is given to DVGeoemtry to be manipulated . Parameters points : array size ( N 3 ) The coordinates to embed . These cordinates * should * all project into the interior of the FFD volume . ptName : str A user supplied name to associate with the set of coordinates . This name will need to be provided when updating the coordinates or when getting the derivatives of the coordinates . origConfig : bool Flag determine if the coordinates are projected into the undeformed or deformed configuration . This should almost always be True except in circumstances when the user knows exactly what they are doing .
def addPointSet(self, points, ptName, origConfig=True, **kwargs):
        self.ptSetNames.append(ptName)
        self.zeroJacobians([ptName])
        self.nPts[ptName] = None
        points = np.array(points).real.astype("d")
        self.points[ptName] = points
        if origConfig:
            tmpCoef = self.FFD.coef.copy()
            self.FFD.coef = self.origFFDCoef
            self.FFD._updateVolumeCoef()
        if self.isChild:
            self.FFD.attachPoints(self.points[ptName], ptName, interiorOnly=True, **kwargs)
        else:
            self.FFD.attachPoints(self.points[ptName], ptName, interiorOnly=False)
        if origConfig:
            self.FFD.coef = tmpCoef
            self.FFD._updateVolumeCoef()
        for child in self.children:
            child.addPointSet(points, ptName, origConfig, **kwargs)
        self.FFD.calcdPtdCoef(ptName)
        self.updated[ptName] = False
def addPointSet ( self , points , ptName , origConfig = True , ** kwargs ) : self . ptSetNames . append ( ptName ) self . zeroJacobians ( [ ptName ] ) self . nPts [ ptName ] = None points = np . array ( points ) . real . astype ( "d" ) self . points [ ptName ] = points if origConfig : tmpCoef = self . FFD . coef . copy ( ) self . FFD . coef = self . origFFDCoef self . FFD . _updateVolumeCoef ( ) if self . isChild : self . FFD . attachPoints ( self . points [ ptName ] , ptName , interiorOnly = True , ** kwargs ) else : self . FFD . attachPoints ( self . points [ ptName ] , ptName , interiorOnly = False ) if origConfig : self . FFD . coef = tmpCoef self . FFD . _updateVolumeCoef ( ) for child in self . children : child . addPointSet ( points , ptName , origConfig , ** kwargs ) self . FFD . calcdPtdCoef ( ptName ) self . updated [ ptName ] = False
Add a set of coordinates to DVGeometry
The is the main way that geometry, in the form of a coordinate
list is given to DVGeoemtry to be manipulated.
Add a set of coordinates to DVGeometry The is the main way that geometry in the form of a coordinate list is given to DVGeoemtry to be manipulated .
"""
        Add a set of coordinates to DVGeometry

        The is the main way that geometry, in the form of a coordinate
        list is given to DVGeoemtry to be manipulated.

        Parameters
        ----------
        points : array, size (N,3)
            The coordinates to embed. These cordinates *should* all
            project into the interior of the FFD volume.
        ptName : str
            A user supplied name to associate with the set of
            coordinates. This name will need to be provided when
            updating the coordinates or when getting the derivatives
            of the coordinates.
        origConfig : bool
            Flag determine if the coordinates are projected into the
            undeformed or deformed configuration. This should almost
            always be True except in circumstances when the user knows
            exactly what they are doing.""" # save this name so that we can zero out the jacobians properly # Ensure we project into the undeformed geometry # Project the last set of points into the volume # Now embed into the children:
self
points
ptName
origConfig