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
def _refine(a, N=10, factor=-1, sharpAngle=30.): C._deleteFlowSolutions__(a) C._TZGC(a, 'nodes', Geom.refine, N, factor, sharpAngle) return None
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
def _getCurvilinearAbscissa(t): return C._TZGC(t, 'nodes', Geom.getCurvilinearAbscissa)
def _getSharpestAngle(t): return C._TZGC(t, 'nodes', Geom.getSharpestAngle)
def _getCurvatureAngle(t): return C._TZGC(t, 'nodes', Geom.getCurvatureAngle)
def _getCurvatureRadius(t): return C._TZGC(t, 'nodes', Geom.getCurvatureRadius)
def _getCurvatureHeight(t): return C._TZGC(t, 'nodes', Geom.getCurvatureHeight)