VS:SetPolyPt: Difference between revisions
m (1 revision) |
m (fix name) |
||
Line 49: | Line 49: | ||
(Gerard Jonker, 2007 Jan. 8) Please have a look at my [http://www.vectorlab.info/index.php?title=Absolute_Origin comments on the VectorLab] regarding this function, concerning index and origin. | (Gerard Jonker, 2007 Jan. 8) Please have a look at my [http://www.vectorlab.info/index.php?title=Absolute_Origin comments on the VectorLab] regarding this function, concerning index and origin. | ||
([[User: | ([[User:CBM-c-|_c_]], 2010 Dec. 25) From Raymond Mullin: ''It only works for Polygons, and not for Polylines.''. Using this function on polylines will rise an invalid handle warning. Please be careful on conversions from polygon to polyline through [[VS:InsertVertex| InsertVertex]] or other routines. See [[VS:SetPolylineVertex| SetPolylineVertex]]. I thus remove the word ''polylines'' from the description above. | ||
</remark> | </remark> | ||
Latest revision as of 05:08, 17 February 2021
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Procedure SetPolyPt sets the location a specified vertex in the referenced polygon.
PROCEDURE SetPolyPt(
objectHd :HANDLE;
index :INTEGER;
xR :REAL;
yR :REAL);
def vs.SetPolyPt(objectHd, index, xR, yR): return None
Parameters
objectHd HANDLE Handle to polygon. index INTEGER Index of vertex. xR REAL New X coordinate of vertex. yR REAL New Y coordinate of vertex.
Remarks
(Gerard Jonker, 2007 Jan. 8) Please have a look at my comments on the VectorLab regarding this function, concerning index and origin.
(_c_, 2010 Dec. 25) From Raymond Mullin: It only works for Polygons, and not for Polylines.. Using this function on polylines will rise an invalid handle warning. Please be careful on conversions from polygon to polyline through InsertVertex or other routines. See SetPolylineVertex. I thus remove the word polylines from the description above.
Version
Availability: from All Versions
See Also
For polygons:
For polylines:
- [[VS:GetPolyPt| GetPolyPt]]
For polylines:
- [[VS:GetPolylineVertex| GetPolylineVertex]]
- [[VS:SetPolylineVertex| SetPolylineVertex]]