BooleanConversions

ConversionRepository
Defines a set of conversion methods to System.Boolean.

Methods

Convert

#
[Merit(Merit.Fair)] [Explanation("Returns true for all angles except those near zero.")] public static void Convert(Angle from, out bool to)
from (Angle)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Arc from, out bool to)
from (Arc)
to (out bool)

Convert

#
[Merit(Merit.Fair)] [Explanation("Returns true for all integers except zero.")] public static void Convert(BigInteger from, out bool to)
from (BigInteger)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Solid shapes become 'true', open shapes become 'false'.")] public static void Convert(Box from, out bool to)
from (Box)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed surfaces, false for open surfaces.")] public static void Convert(Brep from, out bool to)
from (Brep)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Circle from, out bool to)
from (Circle)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for all colors except black.")] public static void Convert(Color from, out bool to)
from (Color)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for all colors except black.")] public static void Convert(Colour from, out bool to)
from (Colour)
to (out bool)

Convert

#
[Merit(Merit.Plausible)] [Explanation("Returns true for all complex numbers except those near zero.")] public static void Convert(Complex from, out bool to)
from (Complex)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Curve from, out bool to)
from (Curve)
to (out bool)

Convert

#
[Merit(Merit.Fair)] [Explanation("Returns true for all numbers except those near zero.")] public static void Convert(double from, out bool to)
from (double)
to (out bool)

Convert

#
[Merit(Merit.Fair)] [Explanation("Returns true for all integers except zero.")] public static void Convert(int from, out bool to)
from (int)
to (out bool)

Convert

#
[Merit(Merit.Plausible)] [Explanation("Returns true for all intervals except near-empty ones.")] public static void Convert(Interval from, out bool to)
from (Interval)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Line from, out bool to)
from (Line)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed meshes, false for open meshes.")] public static void Convert(Mesh from, out bool to)
from (Mesh)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Polyline from, out bool to)
from (Polyline)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Rectangle3d from, out bool to)
from (Rectangle3d)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Solid shapes become 'true', open shapes become 'false'.")] public static void Convert(Sphere from, out bool to)
from (Sphere)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed surfaces, false for open surfaces..")] public static void Convert(Surface from, out bool to)
from (Surface)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed curves, false for open curves.")] public static void Convert(Triangle from, out bool to)
from (Triangle)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Solid shapes become 'true', open shapes become 'false'.")] public static void Convert(Tube from, out bool to)
from (Tube)
to (out bool)

Convert

#
[Merit(Merit.Strange)] [Explanation("Returns true for all vectors except those with near-zero length.")] public static void Convert(Vector3d from, out bool to)
from (Vector3d)
to (out bool)

ToBoolean

#
[Merit(Merit.Strange)] [Explanation("Returns true for closed SubDs, false for open SubDs.")] public static void ToBoolean(SubD from, out bool to)
from (SubD)
to (out bool)