This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Rhino | |
import scriptcontext | |
import System.Guid | |
#import System.Drawing | |
import math | |
from matrix import Matrix | |
def Torus(R, r, toroidal, poloidal): | |
"""Returns a parametrically constructs a torus mesh.""" | |
mesh = Rhino.Geometry.Mesh() |