Author Topic: group code of spline  (Read 1320 times)

0 Members and 1 Guest are viewing this topic.

sysuwzx

  • Mosquito
  • Posts: 18
group code of spline
« on: March 31, 2016, 08:42:50 AM »
When i select a spline, the property named "Knot parameterization" on the properties panel can be changed to "chord" "sqrtchord" "uniform" and "custom".
My question is, is there one group code control this property? If yes, what is it? cant find it in the dxf reference

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: group code of spline
« Reply #1 on: March 31, 2016, 09:08:16 AM »
It seems to be undocumented, I think it is gc 70.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: group code of spline
« Reply #2 on: March 31, 2016, 05:26:04 PM »
Roy is right, 70 is the code that holds the knot parameterization.
From dxf reference
Quote
Group code 70: Spline flag (bit coded):
1 = Closed spline
2 = Periodic spline
4 = Rational spline
8 = Planar
16 = Linear (planar bit is also set)
It seems incomplete, but is easy to find the other valid values:
Quote
32 = chord
64 = sqrt. chord
128 = uniform
256 = custom
512 = show CV frame
1024 = if present, the spline is defined by fit points. Otherwise, by control vertices.

sysuwzx

  • Mosquito
  • Posts: 18
Re: group code of spline
« Reply #3 on: March 31, 2016, 08:10:15 PM »
It seems to be undocumented, I think it is gc 70.

What you guess is right! And the document is not complete. Thanks a lot!

sysuwzx

  • Mosquito
  • Posts: 18
Re: group code of spline
« Reply #4 on: March 31, 2016, 08:10:54 PM »
Roy is right, 70 is the code that holds the knot parameterization.
From dxf reference
Quote
Group code 70: Spline flag (bit coded):
1 = Closed spline
2 = Periodic spline
4 = Rational spline
8 = Planar
16 = Linear (planar bit is also set)
It seems incomplete, but is easy to find the other valid values:
Quote
32 = chord
64 = sqrt. chord
128 = uniform
256 = custom
512 = show CV frame
1024 = if present, the spline is defined by fit points. Otherwise, by control vertices.

Wonderful! Thanks! :smitten: