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

# Rhino.Geometry.Transform.PlanarProjection

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

```    """
plane = rhutil.coerceplane(plane, True)
return Rhino.Geometry.Transform.PlanarProjection(plane)

```

```    def getTransform():
if plane.ZAxis.IsParallelTo(vector)**2 == 1:
x = rc.Geometry.Transform.PlanarProjection(plane)
return x
elif math.sin(rc.Geometry.Vector3d.VectorAngle(plane.ZAxis,vector)) == 1:
```
```            beta = 0.5 * math.pi - angle
factor = 1.0 / math.sin(beta)
project = rc.Geometry.Transform.PlanarProjection(newPlane)
rotate = rc.Geometry.Transform.Rotation(z1, z0, originalPlane.Origin)
scale = rc.Geometry.Transform.Scale(P2, 1.0, factor, 1.0)
```

```    def getTransform():
if plane.ZAxis.IsParallelTo(vector)**2 == 1:
x = rc.Geometry.Transform.PlanarProjection(plane)
return x
elif math.sin(rc.Geometry.Vector3d.VectorAngle(plane.ZAxis,vector)) == 1:
```
```            beta = 0.5 * math.pi - angle
factor = 1.0 / math.sin(beta)
project = rc.Geometry.Transform.PlanarProjection(newPlane)
rotate = rc.Geometry.Transform.Rotation(z1, z0, originalPlane.Origin)
scale = rc.Geometry.Transform.Scale(P2, 1.0, factor, 1.0)
```

```    def getTransform():
if plane.ZAxis.IsParallelTo(vector)**2 == 1:
x = rc.Geometry.Transform.PlanarProjection(plane)
return x
elif math.sin(rc.Geometry.Vector3d.VectorAngle(plane.ZAxis,vector)) == 1:
```
```            beta = 0.5 * math.pi - angle
factor = 1.0 / math.sin(beta)
project = rc.Geometry.Transform.PlanarProjection(newPlane)
rotate = rc.Geometry.Transform.Rotation(z1, z0, originalPlane.Origin)
scale = rc.Geometry.Transform.Scale(P2, 1.0, factor, 1.0)
```

```    def getTransform():
if plane.ZAxis.IsParallelTo(vector)**2 == 1:
x = rc.Geometry.Transform.PlanarProjection(plane)
return x
elif math.sin(rc.Geometry.Vector3d.VectorAngle(plane.ZAxis,vector)) == 1:
```
```            beta = 0.5 * math.pi - angle
factor = 1.0 / math.sin(beta)
project = rc.Geometry.Transform.PlanarProjection(newPlane)
rotate = rc.Geometry.Transform.Rotation(z1, z0, originalPlane.Origin)
scale = rc.Geometry.Transform.Scale(P2, 1.0, factor, 1.0)
```