Top

butterfly_grasshopper module

import sys
import os

if 'butterfly' not in sys.modules:
    sys.path.insert(
        0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

try:
    import butterfly
except ImportError as e:
    raise ImportError('Can\'t find butterfly in sys.path.\n'
                      'You need to install butterfly to use butterfly-grasshopper.\n'
                      'You can download butterfly from\n'
                      'https://github.com/mostaphaRoudsari/Butterfly')

Sub-modules

butterfly_grasshopper.geometry

BF Grasshopper geometry library.

butterfly_grasshopper.refinementRegion

RefinementRegion for Grasshopper.

butterfly_grasshopper.timer

Grasshopper timer.

butterfly_grasshopper.unitconversion

Unit conversion to meters for Grasshopper.