* * *

Author Topic: Questions and missing examples.  (Read 1944 times)

dryzone

  • New member
  • *
  • Posts: 8
Questions and missing examples.
« on: June 01, 2018, 12:58:57 am »
1) The L:azarus FPVECTORIAL WIKI refers to examples and provides a link
"http://wiki.freepascal.org/fpvectorial#Usage_examples"
The link where the examples are supposed to be for
FPVECTORIAL is quoting from the mentioned wiki as;
"
More examples
Please see in the FPC repository: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fpvectorial/examples/
"

Unfortunately the link is dead. Where are the examples to be found now ?

2) Is there a freepascal  bitmap reader similar to FPVECTORIAL available ?
I am not sure if I would be able to detect drawing line edges in a DXF file using FPVECTORIAL as I never did it before. A bitmap should be way easier for a 2-dim object.

What I want to do.

I am sick and tired using tools like PYCAM which opens 20 parallel processes, uses all my memory and takes 30 minutes to output gcode for a simple 2-dim object. What a ball of junk code. In fact anything Python I encountered the last two years were either malicious or hogged my memory. Probably more to the name than meets the eye. Constrictor would be more apt.

I need to write my own DXF to Gcode converter to get rid of the enormous waste of resources.

 

wp

  • Hero Member
  • *****
  • Posts: 4915
Re: Questions and missing examples.
« Reply #1 on: June 01, 2018, 01:35:08 am »
FPVectorial has been moved into the Lazarus project several years ago. You can find the current files in folder components/fpvectorial of your Lazarus installation. It also contains a lot of examples.

I updated the wiki.

A general bitmap viewer can be created easily using the standard LCL component TImage. You can find a demo in the folder examples/imgviewer of your Lazarus installation.

As for DXF, I see that there is only a reader unit - this means that you can read DXF, but not write it. I don't know how well DXF is supported by fpvectorial. Your comments would be welcome, patches even more!

« Last Edit: June 01, 2018, 01:38:51 am by wp »
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Handoko

  • Hero Member
  • *****
  • Posts: 2577
  • My goal: build my own game engine using Lazarus
Re: Questions and missing examples.
« Reply #2 on: June 01, 2018, 05:06:15 am »
I need to write my own DXF to Gcode converter to get rid of the enormous waste of resources.

Maybe you can try and see how ZCAD handling DXF files. It can open DXF files, it is written using Lazarus. Because (as far as I know) it currently developed only by 1 person, it does not have too many features compare to LibreCAD. But the developer is open to any feature requests, I suggested some and he really added those features.

https://forum.lazarus.freepascal.org/index.php/topic,16665

zamtmn

  • Sr. Member
  • ****
  • Posts: 338
Re: Questions and missing examples.
« Reply #3 on: June 04, 2018, 06:44:29 am »
@dryzone
Try ZCAD, You will just add the export command to your format. In this case, you will already have a small set of editing tools

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus