Module Import alias identifier FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad TupleLoad Str AttributeLoad NameLoad attr Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Num Assign NameStore Call NameLoad BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num attr keyword NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr CompareLt Call NameLoad NameLoad NameLoad Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num NameLoad Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num attr keyword NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr CompareLt Call NameLoad NameLoad NameLoad Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num NameLoad Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num attr keyword NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr CompareLt Call NameLoad NameLoad NameLoad Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Index Num NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Call NameLoad NameLoad Num Num Return TupleLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call NameLoad NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpSub SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num AugAssignDiv NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd SubscriptStore NameLoad Index SubscriptLoad NameLoad ExtSlice Slice Index Num NameLoad AugAssignAdd SubscriptStore NameLoad Index SubscriptLoad NameLoad ExtSlice Slice Index Num NameLoad AugAssignAdd SubscriptStore NameLoad Index SubscriptLoad NameLoad ExtSlice Slice Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num AugAssignDiv NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index NameLoad decorator_list
N/A N/A numpy np compact N/A N/A vertices indices tolerance N/A 0.001 N/A N/A  Compact vertices and indices within given tolerance  N/A n N/A len vertices N/A V N/A N/A np zeros n dtype N/A N/A pos N/A np float32 3 N/A N/A N/A V N/A pos N/A N/A N/A 0 N/A vertices N/A N/A N/A 0 N/A N/A N/A V N/A pos N/A N/A N/A 1 N/A vertices N/A N/A N/A 1 N/A N/A N/A V N/A pos N/A N/A N/A 2 N/A vertices N/A N/A N/A 2 N/A epsilon 0.001 N/A decimals N/A int N/A N/A N/A np log epsilon N/A N/A np log N/A 1 10.0 N/A V_ N/A N/A np zeros_like V N/A X N/A N/A N/A N/A V N/A pos N/A N/A N/A 0 round decimals decimals N/A N/A X N/A N/A N/A np where N/A N/A abs X epsilon 0 N/A N/A N/A V_ N/A pos N/A N/A N/A 0 X N/A Y N/A N/A N/A N/A V N/A pos N/A N/A N/A 1 round decimals decimals N/A N/A Y N/A N/A N/A np where N/A N/A abs Y epsilon 0 N/A N/A N/A V_ N/A pos N/A N/A N/A 1 Y N/A Z N/A N/A N/A N/A V N/A pos N/A N/A N/A 2 round decimals decimals N/A N/A Z N/A N/A N/A np where N/A N/A abs Z epsilon 0 N/A N/A N/A V_ N/A pos N/A N/A N/A 2 Z N/A N/A U RI N/A N/A np unique V_ return_inverse True N/A indices N/A N/A indices ravel N/A I_ N/A N/A N/A N/A indices copy ravel N/A i N/A range N/A len indices N/A N/A N/A I_ N/A i N/A RI N/A N/A indices N/A i N/A I_ N/A N/A I_ reshape N/A N/A len indices 3 3 N/A N/A N/A N/A N/A N/A U view N/A np float32 reshape N/A len U 3 I_ RI N/A normals N/A N/A vertices indices N/A N/A N/A 
    Compute normals over a triangulated surface

    Parameters
    ----------

    vertices : ndarray (n,3)
        triangles vertices

    indices : ndarray (p,3)
        triangles indices
     N/A N/A vertices indices mapping N/A compact vertices indices N/A T N/A vertices N/A indices N/A N N/A N/A np cross N/A N/A T N/A N/A N/A 1 N/A T N/A N/A N/A 0 N/A N/A T N/A N/A N/A 2 N/A T N/A N/A N/A 0 N/A L N/A N/A np sqrt N/A N/A np sum N/A N N axis 1 N/A N/A L N/A N/A L 0 1.0 N/A N N/A L N/A N/A N/A N/A np newaxis N/A normals N/A N/A np zeros_like vertices N/A N/A normals N/A N/A indices N/A N/A N/A 0 N N/A N/A normals N/A N/A indices N/A N/A N/A 1 N N/A N/A normals N/A N/A indices N/A N/A N/A 2 N N/A L N/A N/A np sqrt N/A N/A np sum N/A normals normals axis 1 N/A N/A L N/A N/A L 0 1.0 N/A normals N/A L N/A N/A N/A N/A np newaxis N/A N/A normals N/A mapping N/A