Table of Contents

Method ToAcadRay

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToAcadRay(GeoRay3)

Converts a GeometryHelper ray in space to an AutoCAD Ray.

public static Ray ToAcadRay(this GeoRay3 geoRay)

Parameters

geoRay GeoRay3

The GeometryHelper ray to convert.

Returns

Ray

The converted AutoCAD Autodesk.AutoCAD.DatabaseServices.Ray, its base point the ray's origin and its unit direction the ray's.

Exceptions

ArgumentException

Thrown when the ray has no direction, as a default one has, or holds a number that is not finite.

ToAcadRay(IEnumerable<GeoRay3>)

Converts a sequence of GeometryHelper rays in space to a list of AutoCAD Rays.

public static List<Ray> ToAcadRay(this IEnumerable<GeoRay3> rays)

Parameters

rays IEnumerable<GeoRay3>

The sequence of GeometryHelper rays to convert.

Returns

List<Ray>

A list of converted AutoCAD Autodesk.AutoCAD.DatabaseServices.Ray.