gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/include/vob/geom Fillets2.hxx


From: Tuomas J. Lukka
Subject: [Gzz-commits] libvob/include/vob/geom Fillets2.hxx
Date: Thu, 05 Jun 2003 06:37:22 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Tuomas J. Lukka <address@hidden>        03/06/05 06:37:22

Modified files:
        include/vob/geom: Fillets2.hxx 

Log message:
        Starting ellipse fillet code

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/include/vob/geom/Fillets2.hxx.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: libvob/include/vob/geom/Fillets2.hxx
diff -u libvob/include/vob/geom/Fillets2.hxx:1.6 
libvob/include/vob/geom/Fillets2.hxx:1.7
--- libvob/include/vob/geom/Fillets2.hxx:1.6    Thu Jun  5 03:15:53 2003
+++ libvob/include/vob/geom/Fillets2.hxx        Thu Jun  5 06:37:22 2003
@@ -124,6 +124,29 @@
 
     };
 
+    /** An elliptical fillet meeting a circle.
+     */
+    struct EllipseCircleFillet {
+       const CircularNode &node;
+       const LinearConnectionHalf &conn;
+       float tangentAngle;
+       /** Make a new fillet.
+        * @param ta The tangent angle, i.e. always positive angle between
+        *      connection line and tangent line.
+        */
+       EllipseCircleFillet(
+               const CircularNode &node,
+               const LinearConnectionHalf &conn,
+               float ta
+               ) : node(node), conn(conn), tangentAngle(ta)
+                   {
+           Vec pt = Vec(conn.d, 0) - dirVec(-tangentAngle);
+           Vec no = dirVec(-tangentAngle);
+
+           Vec elli = Geom::symmellipse__point_norm(pt, no);
+       }
+    };
+
     /** A circular fillet edge span, for a circular node.
      * This is simply a circular arc from the connection to the point
      * where it is tangent to the circular node.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]