OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-08-2013, 13:54
buga buga is offline
Senior Member
 
Join Date: Jan 2011
Posts: 114
Default fill with triangles (such as polygons)

Hello such.

How could make a macro to fill shape with triangles?

I would like fill with irregular triangles.(such as polygons)

I think it could create random lines (randomly rotated) and intersect with main shape. I would also like the size of the triangles depended on the size of the shape.

any help please?

would be very grateful

thanks in advance

regards
Reply With Quote
  #2  
Old 08-08-2013, 00:21
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Fill

Could you post an image of what you would like the fill to look like.

-Shelby
Reply With Quote
  #3  
Old 08-08-2013, 12:23
buga buga is offline
Senior Member
 
Join Date: Jan 2011
Posts: 114
Default

Something like

http://bestgfx.com/uploads/posts/201...ds-set-108.jpg

any help please?

thanks
Reply With Quote
  #4  
Old 22-08-2013, 14:26
Joe Joe is offline
Member
 
Join Date: Nov 2008
Location: Latvia
Posts: 92
Send a message via Skype™ to Joe
Default

One approach would be to randomly generate points over the shape area using a loop and the IsOnShape command and then run another cycle to check for nearby points and connect them with lines. Still, there would be the matter of getting the colors from the base shape, which, unfortunately, isn't natively available through code.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Texture Fill with VBA ? hschneider CorelDRAW/Corel DESIGNER VBA 0 03-03-2008 07:52
segmented polygons cdsgraphics CorelDRAW/Corel DESIGNER VBA 3 06-10-2006 06:27
Fill Combo Box Shaddy CorelDRAW/Corel DESIGNER VBA 1 25-07-2006 09:10
Ivalin Fill ID ivelink General 7 18-03-2006 09:40
Fill.CopyAssign shelbym CorelDRAW/Corel DESIGNER VBA 2 24-02-2006 04:15


All times are GMT -5. The time now is 21:05.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com