![]() |
#1
|
|||
|
|||
![]()
I want to convert a curve or a segment to many Nodes . What am I doing ?
|
#2
|
||||
|
||||
![]()
I'm not sure what exactly you need. But if you need instead of one smooth Bezier segment a set of short line segments with quite a few nodes, you can easily do that in VBA.
You can get a point position along a segment at any given offset easily without even modifying the original curve. Here is a small macro which creates 10 small circles along each segment of the selected curve: Code:
Sub MarkCurve() Dim seg As Segment Dim n As Long Dim t As Double Dim x As Double, y As Double For Each seg In ActiveShape.Curve.Segments For n = 0 To 10 t = n / 10 seg.GetPointPositionAt x, y, t ActiveLayer.CreateEllipse2 x, y, 0.05 Next n Next seg End Sub Code:
Sub MarkCurve() Dim sp As SubPath Dim n As Long Dim t As Double Dim x As Double, y As Double For Each sp In ActiveShape.Curve.SubPaths For n = 0 To 40 t = n / 40 sp.GetPointPositionAt x, y, t ActiveLayer.CreateEllipse2 x, y, 0.05 Next n Next sp End Sub |
#3
|
|||
|
|||
![]()
thanks Alex
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
It is a bug? (Reflecting Nodes) | Hernán | General | 0 | 26-10-2004 02:13 |
Reducing Nodes Semi Automatic | Superfreak | New product ideas | 2 | 05-10-2004 03:10 |
Convert barcode to curves | pp21 | New product ideas | 1 | 10-03-2004 23:56 |
Delete Segment Enhanced | Hernán | New product ideas | 1 | 08-12-2003 16:04 |
Corel 10 file conversion script doesn't convert files | Kevin | CorelDRAW CS | 0 | 13-04-2003 21:28 |