Example #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
Example #2
0
def _enforceh(a, N=100, h=-1.):
    C._TZA(a, 'nodes', 'nodes', Geom.enforceh, None, N, h)
    C._deleteFlowSolutions__(a)
    return None
Example #3
0
def _refine(a, N=10, factor=-1, sharpAngle=30.):
    C._deleteFlowSolutions__(a)
    C._TZGC(a, 'nodes', Geom.refine, N, factor, sharpAngle)
    return None
Example #4
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