![]() |
【转帖】odgecircarc2d
odgecircarc2d
odgecircarc2d can anyone tell me how to call getsamplepoints on odgecircarc2d? it is unclear to me what arguments the method is expecting. am i correct in assuming that the method returns an array of points that are located on the circle/arc? how many points can i expect to be in the array? void getsamplepoints(double fromparam, double toparam, double approxeps, odgepoint2darray& pointarray, odgedoublearray* pparamarray = 0) const; fromparam - input starting parameter (angle for circ arc) toparam input ending parameter approxeps input chord-height tolerance pointarray output array of points on curve between fromparam and toparam paramarray optional output array of parameters corresponding to points in pointarray returns a list of points on the curve between fromparam and toparam. the line segment between any two consecutive points returned in pointarray does not deviate by more than approxeps from the curve. if both start and end parameters are 0 - the whole arc is approximated. number of output points depends on arc radius and tolerance (approxeps) specified. [ january 30, 2003: message edited by: sergey slezkin ] [ january 30, 2003: message edited by: sergey slezkin ]</p> sergey slezkin |
所有的时间均为北京时间。 现在的时间是 12:12 PM. |