Author Topic: Arc/Curve Data  (Read 1820 times)

0 Members and 1 Guest are viewing this topic.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Arc/Curve Data
« on: August 25, 2015, 10:25:07 PM »
Do arcs have tangent / delta properties or do they need to be calc'd out? If so anyone have an example?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Arc/Curve Data
« Reply #1 on: August 25, 2015, 11:26:43 PM »
Arc.TotalAngle perhaps ...

Code - C#: [Select]
  1.  
  2.   // Properties
  3.   public Point3d Center { [Category("Geometry")] get; set; }
  4.   [UnitType(UnitType.AngleNotTransformed)]
  5.   public double EndAngle { [Category("Geometry")] get; set; }
  6.   [UnitType(UnitType.Distance)]
  7.   public double Length { [Category("Geometry")] get; }
  8.   public Vector3d Normal { [Category("Geometry")] get; set; }
  9.   [UnitType(UnitType.Distance)]
  10.   public double Radius { [Category("Geometry")] get; set; }
  11.   [UnitType(UnitType.AngleNotTransformed)]
  12.   public double StartAngle { [Category("Geometry")] get; set; }
  13.   [UnitType(UnitType.Distance)]
  14.   public double Thickness { [Category("General")] get; set; }
  15.   [UnitType(UnitType.AngleNotTransformed)]
  16.   public double TotalAngle { [Category("Geometry")] get; }
  17.  
  18.  
  19.  
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Arc/Curve Data
« Reply #2 on: August 25, 2015, 11:33:33 PM »
Looks like that will work for the delta. Thank you!

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Arc/Curve Data
« Reply #3 on: August 25, 2015, 11:40:41 PM »
I'm sure it will.

and Tangent would be rad * tan (delta*0.5) I bet.

added:
Though I s'pose it depends on your usage of the word Tangent.
I assumed:
http://autocad.wikia.com/wiki/File:Arc_relationships.png
« Last Edit: August 25, 2015, 11:52:53 PM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.