Table of Contents

Class PointConvert

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

Converts geometry between Tekla Structures and GeometryHelper.

The two libraries describe the same shapes and disagree only about names and about how much they insist on. Tekla hands back what its modeller happens to hold; GeometryHelper asks for flatness, for a closed boundary, and for normals that point out of the body. The conversions here do that checking rather than trusting it, because a body that only looks right measures wrong later and says nothing about why.

Tekla models in millimetres with coordinates that can run to hundreds of thousands, and a face of a twelve metre member is rarely flat to the last decimal. The default tolerance is often too tight for that, so every conversion that needs one takes it, and the overloads without one read Global as everywhere else.

public static class PointConvert
Inheritance
PointConvert
Inherited Members

Methods

ToGeoPoint2(IEnumerable<Point>)

Converts a sequence of Tekla points to a list of GeometryHelper 2D points (discarding their Z coordinates).

ToGeoPoint2(Point)

Converts a Tekla point to a GeometryHelper 2D point (discarding the Z coordinate).

ToGeoPoint3(IEnumerable<Point>)

Converts a sequence of Tekla points to a list of GeometryHelper points.

ToGeoPoint3(Point)

Converts a Tekla point to a GeometryHelper point.

ToGeoPolygon2(IEnumerable<Point>)

Converts a run of Tekla points into a 2D polygon (discarding Z coordinates).

ToGeoPolygon3(IEnumerable<Point>)

Converts a run of Tekla points into a polygon.

ToGeoPolygon3(IEnumerable<Point>, Tolerance)

Converts a run of Tekla points into a polygon, within a tolerance.

ToGeoPolyline2(IEnumerable<Point>)

Converts a run of Tekla points into a 2D chain (discarding Z coordinates).

ToGeoPolyline3(IEnumerable<Point>)

Converts a run of Tekla points into a chain.

ToGeoPolylineArc3(IEnumerable<Point>, IList<double>)

Converts a run of Tekla points into a chain that may curve, bending it at each turn.

ToGeoPolylineArc3(IEnumerable<Point>, IList<double>, Tolerance)

Converts a run of Tekla points into a chain that may curve, bending it at each turn, within a tolerance.

ToTeklaPoint(GeoPoint2)

Converts a GeometryHelper 2D point to a Tekla point (with Z = 0).

ToTeklaPoint(GeoPoint3)

Converts a GeometryHelper point to a Tekla point.

ToTeklaPoint(IEnumerable<GeoPoint2>)

Converts a sequence of GeometryHelper 2D points to a list of Tekla points (with Z = 0).

ToTeklaPoint(IEnumerable<GeoPoint3>)

Converts a sequence of GeometryHelper points to a list of Tekla points.