Esempio n. 1
0
def getTangent(t):
    """
    Makes the tangent of a 1D curve. The input argument shall be a structured
    1D curve. Each node of the output represents the unitary tangent vector, 
    pointing towards the tangent direction of the input 1D curve.
    Usage: b = getTangent(t)"""
    tp = Internal.copyRef(t)
    C._deleteFlowSolutions__(tp)
    C._TZGC(tp, 'nodes', Geom.getTangent)
    return tp
Esempio n. 2
0
def _refine(a, N=10, factor=-1, sharpAngle=30.):
    C._deleteFlowSolutions__(a)
    C._TZGC(a, 'nodes', Geom.refine, N, factor, sharpAngle)
    return None
Esempio n. 3
0
def _uniformize(a, N=100, h=-1., factor=-1, density=-1, sharpAngle=30.):
    C._deleteFlowSolutions__(a)
    C._TZGC(a, 'nodes', Geom.uniformize, N, h, factor, density, sharpAngle)
    return None
Esempio n. 4
0
def _getCurvilinearAbscissa(t):
    return C._TZGC(t, 'nodes', Geom.getCurvilinearAbscissa)
Esempio n. 5
0
def _getSharpestAngle(t):
    return C._TZGC(t, 'nodes', Geom.getSharpestAngle)
Esempio n. 6
0
def _getCurvatureAngle(t):
    return C._TZGC(t, 'nodes', Geom.getCurvatureAngle)
Esempio n. 7
0
def _getCurvatureRadius(t):
    return C._TZGC(t, 'nodes', Geom.getCurvatureRadius)
Esempio n. 8
0
def _getCurvatureHeight(t):
    return C._TZGC(t, 'nodes', Geom.getCurvatureHeight)