Click or drag to resize

GeometryEncoderToUV Method (Point2d)

Converts the specified Rhino.Geometry.Point2d to an equivalent Autodesk.Revit.DB.UV.

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Autodesk.Revit.DB.UV ToUV(
	this Rhino.Geometry.Point2d point
)

Parameters

point
Type: Rhino.Geometry.Point2d
Rhino point to convert.

Return Value

Type: Autodesk.Revit.DB.UV
Revit point that is equivalent to the provided Rhino point.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Rhino.Geometry.Point2d. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
Using ToUV(Point2d) as extension method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

DB.UV revitUVpoint = rhinoPoint2d.ToUV();
Using ToUV(Point2d) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

DB.UV revitUVpoint = GeometryEncoder.ToUV(rhinoPoint2d);
See Also