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 rhinoscriptsyntax as rs | |
import Rhino | |
import scriptcontext as sc | |
import System.Drawing.Color | |
import itertools | |
class ConnectorConduit(Rhino.Display.DisplayConduit): | |
def __init__(self, lines): | |
self.lines = lines |
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 rhinoscriptsyntax as rs | |
import Rhino | |
import scriptcontext as sc | |
import math | |
import System | |
def CalculateTargets(Grevs, srf, crv): | |
pi = math.pi | |
tPlanes = [] |
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 rhinoscriptsyntax as rs | |
import Rhino | |
import scriptcontext as sc | |
import System.Drawing as drawing | |
def SubCrvFromMid(): | |
crvColor = Rhino.ApplicationSettings.AppearanceSettings.TrackingColor | |
oRef = rs.GetObject("Select a curve to shorten.",4, preselect=True, subobjects=True) | |
if not oRef: return |
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 | |
import math | |
class GO_FilterPrevious(Rhino.Input.Custom.GetObject): | |
#Make sure not to allow selection of previously | |
#dogboned curves in the same run of the script | |
def __init__(self, ids): | |
self.m_ids = ids |
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 SelOuterPoints(): | |
ids = None | |
while True: | |
maxPts = 1 | |
if sc.sticky.has_key('MAX_OUTER_PTS'): | |
maxPts = sc.sticky['MAX_OUTER_PTS'] |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import Rhino | |
import math | |
def SetArcRadians(): | |
pi = math.pi | |
def arc_filter( rhino_object, geometry, component_index): | |
return geometry.IsArc() | |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import Rhino | |
def SetArcDegrees(): | |
def arc_filter( rhino_object, geometry, component_index): | |
return geometry.IsArc() | |
looped = False |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import Rhino | |
def SetArcLength(): | |
def arc_filter( rhino_object, geometry, component_index): | |
return geometry.IsArc() | |
looped = False |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import Rhino | |
def SetLineLength(): | |
def line_filter( rhino_object, geometry, component_index): | |
if geometry.IsLinear(): | |
return True | |
return False |
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 rhinoscriptsyntax as rs | |
import scriptcontext as sc | |
import Rhino | |
def ChamferCorner(): | |
tol = sc.doc.ModelAbsoluteTolerance | |
def VertexFilter( rhino_object, geometry, component_index): | |
if component_index.ComponentIndexType == Rhino.Geometry.ComponentIndexType.BrepVertex: | |
return True |