[Updated beta 0.42e] FlexPainter beta 0.34

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

pietro_72_
Full Member
Posts: 77
Joined: Fri Apr 17, 2015 6:40 am
Location: http://creativitainformaticart.altervista.org

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by pietro_72_ » Tue Oct 15, 2019 6:47 am

Hi, when I have time I would like to try your program, but to work it must be extracted all the content of the zip in the path
QCAD\scripts\Misc\Examples\MathExamples\
Does it work if I put your program files in a [Flexpainte] folder?

CVH
Premier Member
Posts: 898
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by CVH » Tue Oct 15, 2019 7:04 am

Hello,

No,

FlexPainter is what I think is called an AddOn.
The Qcad folder structure is necessary.
Qcad expects FlexPainter.js to be in a sub folder FlexPainter.
As it originated as a Math example this has to be a sub folder of MathExamples.

Regards,
CVH
QCADpro 3.25.2.1 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

pietro_72_
Full Member
Posts: 77
Joined: Fri Apr 17, 2015 6:40 am
Location: http://creativitainformaticart.altervista.org

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by pietro_72_ » Wed Oct 16, 2019 9:00 pm

Beautiful, strong, complex your program
I don't use these forms much, but you never know
If in case I could also take inspiration from your code if you don't mind?
Good job.

CVH
Premier Member
Posts: 898
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by CVH » Thu Oct 17, 2019 12:17 am

Thanks,
Me neither, :wink:
No I don't mind.

As it is already part of the lastest Qcad snapshot, its free to use.
As always we have to read the fine print.

I hope my documented struggles at least inspire others in scripting.
My knowledge of QT, Javascript or the Qcad project was non-existent.

What if we used the base-line to cast:
> pebble stones under it, sand, asfalt
> gras above it
(Width = depth or height)
....

Regards,
CVH

PS: :?
Writing this reply remembered to include
reference to OrthogonalProjections.js Topic
QCADpro 3.25.2.1 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

CVH
Premier Member
Posts: 898
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Revision Clouds by FlexPainter

Post by CVH » Fri Oct 18, 2019 9:53 am

In respons to:
https://qcad.org/rsforum/viewtopic.php?t=6131
https://qcad.org/rsforum/viewtopic.php?t=3519
https://qcad.org/rsforum/viewtopic.php?t=846

Coded some clouds painters.
Will be included in a next release.

Regards.
CVH
Attachments
RevisionCloudTest.dxf
(133.63 KiB) Downloaded 115 times
CloudExample.png
CloudExample.png (35.18 KiB) Viewed 2015 times
QCADpro 3.25.2.1 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

User avatar
petevick
Full Member
Posts: 61
Joined: Tue May 19, 2020 9:34 am

Re: Revision Clouds by FlexPainter

Post by petevick » Wed Aug 26, 2020 9:00 pm

CVH wrote:
Fri Oct 18, 2019 9:53 am
.......Coded some clouds painters.
Will be included in a next release.

Regards.
CVH
Was this ever included ? I can't see a cloud option in the Painter options dialog box.
Pete Vickerstaff
Linux Mint 20.0 Cinnamon, Qcad Pro 3.25.2

CVH
Premier Member
Posts: 898
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

FlexPainter Updated beta 0.42e

Post by CVH » Sat Aug 29, 2020 3:31 pm

Flexpainter Beta v0.42e Update
... or 'complex line types on steroids' :wink:
.. but just a minor update.
.and long overdue! (Riverbanks :oops: ).

:!:
CE bug: Not functional. :(
FlexPainter relies vastly on splines and other PRO resources.
Without PROTOOLS present it should be disabled to load. Not tested.
I'll have to see how lean it can be made.

:!:
Fixed some minor issues, typos and so on.
The scope mystery isn't tackled, the script is functional 'as is'.
Not verbose, a lot more of the details are spit out on the command history.
A vast amount of info is textual included in the script file itself. :wink:

:!:
Enhanced the painter definitions types:
Local & Global Poly, now both with bulging.

:!:
Castings can be done on a sublayer of the base entity.
Know issue: This can interfere with casting in group.
It will take some more 'Undo's' to undo. :wink:

:!:
Revised the painter sets and added some.
+ Riverbanks 1:1 & 2:3, 3 types each.
+ Revision Clouds, 7 types.
Renewed & added all preview icons of these painter sets.
(The hardest part)

Revision Clouds bulging relies on the actual casted distance between points.
On non uniform base lines this looks rather 'at random' with a theme.

:!:
Most Painters now have a Begin and End -Apex.
- Artistics.
- Pointing V-shape extrusions for Revision Clouds.
Drag the top node to point where you want it to point.
- Voids, in general 1/2 of what makes more sense: the length or the step-size.
An apex is considered as something intentional.
A void as Apex doesn't merge with any exposed void of the chain for global alignment or only an extra painter .
This feature isn't yet tested in full.

Remark that apexes are not applicable on <geometric closed & near continuous forms>.
:arrow: for Revision Clouds with V-pointers use:
- a non-continuous form (V @ begin), preferable geometric closed.
- both apexes
- dynamically scale

FlexPainter 42e.zip
Flexpainter Beta 0.42e update
(369.31 KiB) Downloaded 22 times
This zip package with version 0.42e is intended to be extracted to:
... QCAD\scripts\Misc\Examples\MathExamples\FlexPainter\
Included is a subfolder with the icons.
Included is a subfolder 'FlexPainterTemplates' with 2 dxf drawings.
- One is a tutorial on how the painter is constructed, and one with a bunch of test cases.
- On a win system it might be better to move these dxf files out of the protected OS portion as Admin.

Andrew may include this in a newer release or snaptshot.
Immediate short update:
- Copy over the .js and the .ui file.
- Replace the Icon folder.
- Boot or Reboot QCAD


Regards,
CVH
Last edited by CVH on Sun Aug 30, 2020 2:54 pm, edited 2 times in total.
QCADpro 3.25.2.1 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

User avatar
petevick
Full Member
Posts: 61
Joined: Tue May 19, 2020 9:34 am

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by petevick » Sat Aug 29, 2020 4:13 pm

Flexpainter really is a work of art CVH and a credit to your scripting skills. It also shows just how powerful Qcad is, and can be, with clever scripts like this.

I could play with it all day, the curtain rope fascinates me :lol: :lol:
Pete Vickerstaff
Linux Mint 20.0 Cinnamon, Qcad Pro 3.25.2

CVH
Premier Member
Posts: 898
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by CVH » Sat Aug 29, 2020 4:30 pm

Thanks,
Curtain rope is a proto ... and was 'the' proto.
It has two distinct apexes that you can not swap.
Intended is to make a hard and a soft version.

I have changed the first topic title just now.

Regards,
CVH
QCADpro 3.25.2.1 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

JimWOz
Registered Member
Posts: 2
Joined: Sat Jul 25, 2020 2:44 pm
Location: Australia

Re: [Updated beta 0.42e] FlexPainter beta 0.34

Post by JimWOz » Sat Sep 05, 2020 3:33 am

CVH, - Many thanks for FlexPainter.

I will use auxiliary lines to frame a drawing revision area, then apply FlexPainter to this selection to create the revision cloud surrounding the change. Auxiliary lines layer then turned off for a presentation print or pdf output.

Note to all that FlexPainter 0.42e is included in QCAD 3.25.1 default installation.
Misc/Script Examples/Mathematics/FlexPainter
Mac OS 10.13.6 on late 2015 MacBook Pro 13.
QCADPro 3.25.1

:) from 40+ south.

Post Reply

Return to “QCAD Developers and Contributors”