[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [654] repair_holding/ space_view3d_cursor_to_edge_intersection.py: updated mathutils.Vector() changes

Campbell Barton ideasman42 at gmail.com
Sun May 2 16:47:38 CEST 2010


v1 = Vector((p1.x - p3.x, p1.y - p3.y, p1.z - p3.z))
Should be able to be written as...
v1 = p1 - p3


On 5/1/10, Florian Meyer <florianfelix at web.de> wrote:
> Revision: 654
>
> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=654
> Author:   testscreenings
> Date:     2010-05-01 14:11:46 +0200 (Sat, 01 May 2010)
>
> Log Message:
> -----------
> updated mathutils.Vector() changes
>
> works again
>
> Modified Paths:
> --------------
>     repair_holding/space_view3d_cursor_to_edge_intersection.py
>
> Modified: repair_holding/space_view3d_cursor_to_edge_intersection.py
> ===================================================================
> --- repair_holding/space_view3d_cursor_to_edge_intersection.py	2010-05-01
> 12:08:17 UTC (rev 653)
> +++ repair_holding/space_view3d_cursor_to_edge_intersection.py	2010-05-01
> 12:11:46 UTC (rev 654)
> @@ -43,13 +43,13 @@
>
>      min = 0.0000001
>
> -    v1 = Vector(p1.x - p3.x, p1.y - p3.y, p1.z - p3.z)
> -    v2 = Vector(p4.x - p3.x, p4.y - p3.y, p4.z - p3.z)
> +    v1 = Vector((p1.x - p3.x, p1.y - p3.y, p1.z - p3.z))
> +    v2 = Vector((p4.x - p3.x, p4.y - p3.y, p4.z - p3.z))
>
>      if abs(v2.x) < min and abs(v2.y) < min and abs(v2.z)  < min:
>          return None
>
> -    v3 = Vector(p2.x - p1.x, p2.y - p1.y, p2.z - p1.z)
> +    v3 = Vector((p2.x - p1.x, p2.y - p1.y, p2.z - p1.z))
>
>      if abs(v3.x) < min and abs(v3.y) < min and abs(v3.z) < min:
>          return None
> @@ -70,8 +70,8 @@
>      mua = n / d
>      mub = (d1 + d2 * (mua)) / d4
>
> -    return [Vector(p1.x + mua * v3.x, p1.y + mua * v3.y, p1.z + mua *
> v3.z),
> -        Vector(p3.x + mub * v2.x, p3.y + mub * v2.y, p3.z + mub * v2.z)]
> +    return [Vector((p1.x + mua * v3.x, p1.y + mua * v3.y, p1.z + mua *
> v3.z)),
> +        Vector((p3.x + mub * v2.x, p3.y + mub * v2.y, p3.z + mub * v2.z))]
>
>  def edgeIntersect(context, operator):
>
>
>
> _______________________________________________
> Bf-extensions-cvs mailing list
> Bf-extensions-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
>


-- 
- Campbell


More information about the Bf-extensions-cvs mailing list