Created
June 9, 2020 04:32
-
-
Save chuongmep/0d3730f00a8a6eb640529e56db653831 to your computer and use it in GitHub Desktop.
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 clr | |
clr.AddReference('ProtoGeometry') | |
import Autodesk.DesignScript.Geometry | |
a = IN[0] | |
if isinstance(a, list): | |
a = a | |
else: a = [a] | |
e = [] | |
for i in a: | |
e.append(Autodesk.DesignScript.Geometry.Curve.Offset(i,0)) | |
OUT = e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment