Skip to content

revdancatt/HLR-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A quick "stress test" for the new Hidden Line Removal feature of the AxiDraw tools.

This code is so I can quickly create 5,000+ overlapping rectangles, which can then be used to test the HLR option in the AxiDraw InkScape extension, CLI and Python. I decided the best way to try this out was creating an fxparams projects, as it gave me a nice UI to work in.

Because this is supposed to be a tool and not an artwork no-one was really supposed to buy it, but I also wanted to be able to mint copies to I could carry on using it. But then someone bought them 😆

plots

Places

Canonical: where the v1 of the project was first published
High-res: where the project lives on my website with high-res outputs
RCS edition: where the latest updated version of the project lives

Installation

Clone the github repository into a folder, then open index.html in a browser.

The project has been designed to work on fxhash with fx(params), to do this first install fx(lens) and follow those instructions on the fxlens GitHub page, section: "Inspect token with fx(lens)"

Usage

If running the code locally, adjust the settings on the left until you have the desired results, then press 1-6 to download an SVG formatted to A1 to A6 in size.

Then run that through the Hidden Line Removal tool to see how long the tool takes on your system.

Outputs and the Hidden Line Removal.

If you're running locally, then pressing 1-6 will give you an SVG file you can process. Alternatively you can view the project running on fxhash here: https://www.fxhash.xyz/generative/slug/hidden-line-removal-test-demo-copy/explore-params

On that page set your parameters how you'd like, in my tests 5,000 "squares" takes about 8 minutes to remove the hidden lines, 10,000 is about half an hour, MacBook Pro 2020 M1 Chip.

Params

Once you have your params set hit the "Open in New Window" icon in the bottom left hand corner to open the artwork in a way that allow it to receive key presses.

Open in new window

Either way, once you have your SVG file, open in InkScape, then select "Save a Copy...", pick AxiDraw "Plob" Plot Digest as the output...

Plob

...then select the target AxiDraw size, turn Hidden-line removal on in the dialog that pops up, and optionally optimisation...

Dialog

Click OK will kick off the removal which can take anywhere from seconds to hours?? Depending on how complex everything is.

Once it's finished it'll create an SVG file that you can then send directly to the pen plotter.

More information

You can read more details here: https://www.fxhash.xyz/article/editor/1241/preview
View the YouTube video here: https://www.youtube.com/watch?v=uNJcdEW1vpY

Single plot

About

A quick test of hidden line removal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published