Geometry library functions

Function Name Description
GE_AdjacentPoly Checks if two polyline entities or list of points meet at one of their ends.
GE_AngleBetn2L Calculate the Horizontal angle between two lines
GE_ApplyInterP Apply interpolation on a segment of points.
GE_Arc2Line Convert an ARC to a list of points to form a line (or polyline)
GE_Arc2Line_CW Convert an ARC to a list of points to form a line (or polyline)
GE_AvgPt Find out the average of a list of points.
GE_centroid Determine centroid of a polygon
GE_ClosestPointTo Locate the closest point to the curve. This function is meant for use by IntelliCAD-based applications like BricsCAD in which the implementation of the vlax-curve-getClosestPointTo function is still not available (as on 5/8/2008)
GE_Collinear? Find out if three points are collinear within a given tolerance
GE_Corners Rearranges the passed points 'p1' and 'p2' such that the returned points are the lower left and upper right corners.
GE_DefAngWeed Weed a list based on deflection angle between this segment and next segment
GE_Densify Densifies a list of points by specifying a minimum inter-vertex distance to be applied between the points.
GE_Densify2 Densifies the points in a polyline object by an alternative method.
GE_DensifyRandom Densifies a list of points by specifying a range value of minimum maximum value. The densification is done based on random values selected in between the minimum and maximum values.
GE_Dist&AngWeed_Back Weed a list based on inter-vertex distance AND angular deflection between the points. The deflection angle is considered to be 'Back' i.e the angle checked is between the CurPt, PrevPt and NextPt.
GE_Dist&AngWeed_Front Weed a list based on inter-vertex distance AND angular deflection between the points. The deflection angle is considered to be 'Front' i.e the angle checked is between this - CurPt, NextPt and NextNextPt.
GE_DistDefAngWeed Weed a list based on inter-vertex distance AND angular deflection between the points. The deflection angle is considered to be 'Front' i.e the angle checked is between this - CurPt, NextPt and NextNextPt.
GE_DistDefDistWeed Weed a list based on inter-vertex distance AND deflection distance between the points.
GE_DistWeed Weed a list purely based on inter point distance
GE_Extents Return the x,y and z extents of a list of points
GE_FindNearest Find the nearest point on a list of points to a given point.
GE_Get9JustPts Returns the 9 justification points in the following clockwise order - TL, TC, TR, MR, BR, BC, BL, ML and MC, TL TC TR, ML MC MR, BL BC BR
GE_Get_SS_SegmentLengths Returns a list of all segment lengths from a selection set of linear elements
GE_GetArcMidPt Returns the midpoint of the arc which is assumed to be defined in the Counter clockwise direction
GE_GetBiggestCrown Returns the biggest crown distance possible in an arc segment
GE_GetObjectBoundingBox Returns the object bounding box coordinates in the form of a list of Lower Left and Upper Right points.
GE_GetBoxAroundPt Returns the coordinates of a box (window) around a point The window may be a square or rectangle
GE_GetBoxFromAxis Finds out the bounding box points given the two axis points and the width.
GE_GetBulge Returns the bulge of an arc, given the H and D arguments
GE_GetCentroid Compute center of gravity of masses (closed regions(polylines))
GE_GetDefDist Get the deflection distance between three points
GE_GetEndChord Returns the chord distance given by the start and end points.
GE_GetFarthestPoints From a given list of points IN A STRAIGHT LINE, return the two most farthest points
GE_GetIncludedAngle Get the included angle between an origin point (O)and two other points, A and B joining it (origin point) and themselves. This gives the angle between OA and OB
GE_GetNearestNode Returns the nearest node (DXF Code 10) around a point from a selection set of entities
GE_GetNonZeroZ Seeks the first non-zero value of an elevation from a list of points
GE_GetNormal Compute the normal of an object and return as a list of 3d points
GE_GetObjectBoundingBox Returns the object bounding box coordinates in the form of a list of Lower Left and Upper Right points.
GE_GetOffsetPts Returns the Offset points on either side of a line
GE_GetPoint@DistOnLine Returns a point on a line at a specified distance from the first point of the line.
GE_GetPtInPoly Return a point which is truly and physically inside the polygon
GE_GetRadiusBD Returns the radius of an arc, given the bulge factor and distance between the two points
GE_GetRadiusHD Returns the radius of an arc, given the H and D arguments
GE_GetRange Returns the range of a coordinate from a given graphical object.
GE_GetSegmentLengths Returns a list of all segment lengths from a list of points
GE_GetSegmentPoints Returns a list of all segment start and end points from a list of points
GE_GetSlope Returns the slope/azimuth of a line defined between two points
GE_GetSSBoundingBox Returns the object bounding box coordinates for the entire selection set
GE_Interpolate Interpolate all zero value coordinates between two non-zero values
GE_IntersectWith Returns the intersection points between two entities
GE_LocateVx Locate a vertex along a polyline segment list of points
GE_MarkLengths Marks a series of lengths defined by a list of lengths along a line defined by 'vlist' points
GE_NearPt Locate a point nearest to a list of points
GE_PerpPt Locate the perpendicular drop point from a point pp to any line segment defined by two other points pt1 and pt2
GE_pist3d2d Converts a 3D points list to 2D points list
GE_plist3d2d Converts a 3D points list to 2D points list
GE_PlLen Find the length of all segements in Ptlist
GE_PntInView Check if point is in current viewport
GE_GetPoint@DistOnLine Returns a point on a line at a specified distance from the first point of the line.
GE_PointInWindow Check whether a point is within a window or not
GE_polyarea Calculate the area of a polygon
GE_PolyInters Checks if a given polygon intersects itself in any of its segments
GE_PolyStat Returns vital statistics about a polygon(polyline)
GE_PtInPoly Detects if a point is within a closed polygon. This is done by drawing a line from pt to x+ direction and count the number of times it cuts the polygon under test. An even number of cut indicates that the pt is outside the polygon.
GE_PtOutsideAllPoly Detects if a point falls outside each of a set of closed
GE_SeekNonZero Seeks the first non-zero value of an elevation from a list of points
GE_SegInters Checks if a given segment intersects a given list of segments
GE_SetNonZeroZ Sets all values in a list of points to a nearest non-zero value that occurs prior to the point in question. The only exception to this is if the first point itself happens to be at 0.0 elevation. Then the nearest forward non-zero elevation is sought.
GE_SetPrecision Changes the precision of all x, y and z values in a points list to the specified value.
GE_Slope Returns the slope as a percentage ( V / H )
GE_SortByDistance Sort a list of points by distance from a given point
GE_SubSeg Return a part of a list in between two points.
GE_TnArc2Arc Checks for tangency between an arc and an arc
GE_TnLine2Arc Checks for tangency between a line and arc segment
GE_TnLine2Line Checks for tangency between a line and a line
GE_VecCrossProduct Computes the cross products of two vectors
GE_VecDotProduct Computes the dot products of two vectors
GE_VecNormalize Normalize a vector (scale to a unit length)
GE_VecScale Scale a vector by a scalar amount
GE_WeedZ Weed a list of points purely based on the Z elevations
GE_WhatPoly Find the direction of the polygon (if Cw or CCw)
GE_Zoom2Lst Zoom to the extents of a list of points
GE_ZoomInPt Zooms current extents to include a pt if it lies outside the screen