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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
#Select curves and surfaces that have stacked control points | |
def selStacked(): | |
count = 0 | |
Ids = rs.ObjectsByType(4+8) | |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
def MeshCountFromBlock(id, blnTris): | |
bObjs = rs.BlockObjects(rs.BlockInstanceName(id)) | |
for bId in bObjs: |
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 rhinoscriptsyntax as rs | |
import datetime | |
import scriptcontext as sc | |
def validate(date_text): | |
try: |
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 as sc | |
import rhinoscriptsyntax as rs | |
def GetBaseMode(): | |
""" | |
Making new display modes via RC seems to be broken | |
When that is fixed, this will help create the StretchView mode | |
if it does not exist. |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
def SelLarge(): | |
count = 1 | |
if sc.sticky.has_key("MEMORYUSECOUNT"): | |
count = sc.sticky["MEMORYUSECOUNT"] | |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
def Clearance(): | |
id1 = rs.GetObject("Select a base surface, polysurface or mesh.", 8+16+32, preselect=True) | |
if not id1: return | |
if rs.IsMesh(id1): |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
def TweenMesh(): | |
intMesh = 1 | |
if sc.sticky.has_key("TWEEN_MESH_COUNT"): | |
intMesh = sc.sticky["TWEEN_MESH_COUNT"] |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import os | |
def test(): | |
max = 16 #max iterations | |
MainFolder = rs.WorkingFolder() | |
if sc.sticky.has_key("MAIN_FOLDER"): |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import System.Guid | |
def AveragePoint3d(aPts): | |
X = Y = Z = 0 | |
L = len(aPts) | |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import System.Guid | |
import math | |
def GetMarkerOptions(crvLength): | |
while True: | |
num = 0 |
OlderNewer