Author Topic: vlax-curve-isclosed vs. vlax-curve-isperiodic  (Read 2573 times)

0 Members and 1 Guest are viewing this topic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
vlax-curve-isclosed vs. vlax-curve-isperiodic
« on: April 06, 2015, 02:29:10 PM »
Just wondering: can a closed curve not be periodic?

ymg

  • Guest
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #1 on: April 06, 2015, 03:02:47 PM »
Quote
http://academy.smc.edu/courses/et24/html/et24_wk03b_curves.htm

A closed curve is a loop with coinciding start and end edit points. Where start and end edit points meet is also called a seam. If you move the start edit point, the end edit point moves with it (and vice versa).

A periodic curve is also a loop with a seam, but it has two unseen spans at the end of the curve that overlap the first two spans. For example, suppose you create a circle primitive with four spans (sections). A circle primitive is a periodic curve. If you display the circle's edit points, you'll see only four spans. There are actually six spans, but the last two overlap the first two. The unseen spans provide structure to keep the loop closed and the curvature free of sharp corners when you move a point away from that region.


Don't know if Autocad does the same way but this is the academic definition.

ymg

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #2 on: April 07, 2015, 03:35:58 PM »
Thanks. Somehow your link does not work for me ('server not found').
I am not sure what 'span' means in this context.

Judging from the AutoCAD docs any closed curve is also periodic.

ribarm

  • Gator
  • Posts: 3307
  • Marko Ribar, architect
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #3 on: April 07, 2015, 04:46:22 PM »
Judging from the AutoCAD docs any closed curve is also periodic.

But as I may guess any periodic curve isn't also always closed, otherwise why would exist (vlax-curve-isclosed) and (vlax-curve-isperiodic) as two different functions...

Or, maybe : All open curves are non-periodic?

Some of closed curves are periodic and some of them are non-periodic?

As far as I knew by now - those 2 last statements seem to me that are correct... - Are there open curves that are periodic???

Quote

"An open curve (non-periodic) has free ends."

http://help.autodesk.com/view/ALIAS/2015/ENU/?guid=GUID-9344F058-3623-474D-9CAB-D866542315B9


Does this mean open=non-periodic?
« Last Edit: April 07, 2015, 05:15:00 PM by ribarm »
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

Lee Mac

  • Seagull
  • Posts: 12926
  • London, England
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #4 on: April 07, 2015, 05:16:37 PM »
FWIW, closed 2D (Heavy) polylines & closed 3D polylines are closed but not periodic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #5 on: April 08, 2015, 03:13:05 AM »
... otherwise why would exist (vlax-curve-isclosed) and (vlax-curve-isperiodic) as two different functions...
That was my thought as well.

FWIW, closed 2D (Heavy) polylines & closed 3D polylines are closed but not periodic.
Thanks for pointing out those exceptions. I don't understand why they exist if a closed LWPOLYLINE is periodic.

Note this strange behavior (BricsCAD V14):
Test entity: Rectangle (closed LWPOLYLINE with 4 vertices):
Code: [Select]
(vlax-curve-isperiodic (car (entsel))) => T
(vlax-curve-getpointatparam (car (entsel)) 1) => (3598.25 -606.818 0.0)
(vlax-curve-getpointatparam (car (entsel)) 5) => nil

Lee Mac

  • Seagull
  • Posts: 12926
  • London, England
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #6 on: April 08, 2015, 04:24:41 AM »
FWIW, closed 2D (Heavy) polylines & closed 3D polylines are closed but not periodic.
Thanks for pointing out those exceptions. I don't understand why they exist if a closed LWPOLYLINE is periodic.

Agreed - I am also confused as to why a closed LWPOLYLINE would be periodic - I originally thought only circular/elliptical objects would be periodic.

TMoses

  • Guest
Re: vlax-curve-isclosed vs. vlax-curve-isperiodic
« Reply #7 on: April 09, 2015, 01:29:55 PM »
Dear Roy, Dear Lee,
I also cross-checked with AutoCAD 2008/2014 ... same strange "periodic" behaviour for a closed polyline :-)
Indeed, strange, and I would even say, it is simply wrong ...

"Periodic" entities should repeat their values (points) after 1 period, think of a kind of spiral etc.
Many greetings !