Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# Rhino.Geometry.Vector3d.Rotate

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

```                    for vectorCount, vec in enumerate(tiltedRoseVectors):
rcVector = rc.Geometry.Vector3d(vec)
rcVector.Rotate(rotatoionAngle, rc.Geometry.Vector3d.ZAxis)
patchesNormalVectors[vectorCount] = (rcVector.X, rcVector.Y, rcVector.Z)

```

```    def angle2north(self, north):
try:
# print north
northVector = rc.Geometry.Vector3d.YAxis
```
```            if angle in mainAngles: mainLine = True
vector = rc.Geometry.Vector3d(northVector)
line, basePt, baseCircle, outerCircle = drawLine(cenPt, vector, radius, mainLine, xMove)
if mainLine == True: compassText.append(mainText[mainAngles.index(angle)])
```

```        # Define a vector to be used to generate the planes
planeVec = rc.Geometry.Vector3d(normalVector.X, normalVector.Y, 0)
planeVec.Rotate(1.570796, rc.Geometry.Vector3d.ZAxis)

#Define a bounding box for use in calculating the number of shades to generate
```
```                    planeVec = rc.Geometry.Vector3d(normalVector.X, normalVector.Y, 0)
planeVec.Rotate(1.570796, rc.Geometry.Vector3d.ZAxis)
normalVectorPerp.Rotate((shdAngle*0.01745329), planeVec)
elif horOrVertical == False:
planeVec = rc.Geometry.Vector3d.ZAxis
if getAngle2North(normalVectorPerp) < 180:
normalVectorPerp.Rotate((shdAngle*0.01745329), planeVec)
else: normalVectorPerp.Rotate((shdAngle*-0.01745329), planeVec)
```

```                #alternate method for midVector
midVector = rc.Geometry.Vector3d(vector1)

# create the arc
```

```    angle_radians = Rhino.RhinoMath.ToRadians(angle_degrees)
rc = Rhino.Geometry.Vector3d(vector.X, vector.Y, vector.Z)

```

```            hRotationVectors = [];
northAngle, northVector = lb_preparation.angle2north(north)
# print eastVector

```
```
# rotate vertically

for hAngle in roseHAngles:
hVector = rc.Geometry.Vector3d(vectorVRotated)
```                northVector1 = rc.Geometry.Vector3d(northVector)