Gets the position of self-intersection of the geometry of the current open Item.
Visual Basic |
---|
Public Function GetGeomSelfIntersection( _ ByVal nGeom As Long, _ ByVal arclenStart As Double _ ) As Double |
The distance along the geometry component of any self-intersection, or –1.0 if no self-intersection was found. This method returns 0.0 if any error occurs. Any error can be queried from the ASysVarExecError system variable.
Use GetNumGeom to get the number of geometry components in an Item.
Items such as blocks, groups, MultiLineStrings, and so on, can be made up of multiple geometry. Therefore the value of nGeom can be greater than 0. Items such as LineString items, polygons, symbols, and so on, are made by a single piece of geometry. Therefore the value would be 0.
The arclenStart argument is useful for geometry which passes through a position more than once, e.g. a figure-of-eight. To handle this situation, call this method repeatedly, using -1.0 for the arclenStart argument for the first call, and the returned value for each subsequent call, until -1.0 is returned.
This method will return 0.0 if any error occurs. Any error can be queried from the _ExecError& system variable.
Available: GEO MM ME MD OD OM SISpy
Group:
sis.GetGeomSelfIntersection(0, -1.0)
Evaluates the position of the first self-intersection of a single piece of geometry, if any.
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).