[tool] roughen a polyline

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Mathew
User
Posts: 584
Joined: Thu Jun 19, 2014 7:30 pm

[tool] roughen a polyline

Post by Mathew »

This tool will take a polyline, polygon or line and "roughen" it (ie it adds intermediate points and moves them slightly out of line by a random distance). It's based on the ROUGHEN.LSP tool for AutoCAD by Mark Middlebrook

Usage
First select the line you want to roughen, then select the tool.
image(2).png
It will show a dialog
image.png
  • Roughness Period is the approximate length of the segments (in points) to break the line into.
    Roughness Amplitude is the maximum distance (in points) away from the line to move intermediate points. If this is more than half of the Period it will have some strange effects.
    Keep Roughening, if checked, will split up line segments on a selected even if they are shorter than Roughness Period.
After you press 'OK' it will roughen the line. If you've selected a line, it will convert it into a polyline.
image(1).png
Installation
Extract (unzip) the zip file and save the files into the JavaScript folder (either in %APPDATA%\Tracker Software\PDFXEditor\3.0\JavaScripts or in the application folder). After restarting PDF XChange it will add a menu item "Roughen" to the Comment Tools ribbon and to the Comment menu (in the classic UI)
roughen v0.1.zip
You do not have the required permissions to view the files attached to this post.