stroke_resample_closed — PRINTPATH stroke op

• Data kinds: pairs → pairs

• Call: import fullseye as fs; fs.ledger.stroke_resample_closed(points, n_points, allow_shortening=False) (implementation को सीधे call करना हो तो import printpath; printpath.stroke_resample_closed(points, n_points, allow_shortening=False), registry से लेना हो तो opsprintpath.get("stroke_resample_closed"))

उपयोग

बंद line को समान arc length पर फिर से sample करता है। → pairs

Fourier को देने से पहले का चरण। ★parameterisation के तरीके से coefficients बदलते हैं (measured में अधिकतम 47 गुना), इसलिए यहाँ स्पष्ट रूप से arc length में बराबर दूरी तय किया गया है। arc length की दूरी machine precision तक स्थिर है (measured cv 1e-14)।

★लेकिन दोबारा sample करने पर line छोटी हो जाती है: samples को chords जोड़ते हैं, इसलिए मोड़ पर कोने कट जाते हैं। measured (300 vertices वाला tour): 4000 samples पर लंबाई 99.1 %, 1024 पर 96.9 %, 300 (vertices के बराबर) पर 89.3 %, 100 पर 72.8 %, 50 पर 57.7 %। लंबाई बदले तो tone का reproduction भी बिगड़ता है, इसलिए input के vertices से कम samples को default रूप से reject किया जाता है (जानबूझकर हो तो allow_shortening=True)।

उपयोग की विस्तृत guide

• printpath family guide

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• poc_one_stroke_epicycles — py -3.11 examples/poc_one_stroke_epicycles.py

वे अगले ops जिनसे type जुड़ता है (pairs को input के रूप में लेते हैं)

stipple_energy · stroke_tour_closed · mst_length · stroke_tone_error · mosaic_tiles_render

इसी category के (stroke)

stipple_points_from_image · stipple_energy · stroke_tour_closed · mst_length · stroke_tone_error


*Provenance: printpath.py — PRINTPATH operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.