[Bf-committers] Re: [Bf-blender-cvs] CVS
commit: blender/release/scripts
help_bpy_api.py export_fbx.py object_cookie_cutter.py
doc_browser.py blender/source/blender/python/api2_2x
Camera.c blender/source/blender/python/api2_2x/doc
Camera.py blender/source/blender/src
buttons_shading.c interface_draw.c
Campbell Barton
cbarton at metavr.com
Sun Apr 29 15:36:25 CEST 2007
Joe Eagar wrote:
> Campbell Barton wrote:
>> campbellbarton (Campbell Barton) 2007/04/28 19:21:00 CEST
>>
>> Modified files:
>> blender/release/scripts export_fbx.py object_cookie_cutter.py
>> blender/source/blender/python/api2_2x Camera.c
>> blender/source/blender/python/api2_2x/doc Camera.py
>> blender/source/blender/src buttons_shading.c interface_draw.c Added
>> files:
>> blender/release/scripts help_bpy_api.py Removed files:
>> blender/release/scripts doc_browser.py Log:
>> removed doc_browser.py - since it covers ~half the BPY api, not
>> documenting any of blenders data types.
>> replaced with a help_bpy_api.py, that opens a web browser at the
>> Blender Python API page.
>> Camera.c - added a veriable .angle to camera, same as .lens but
>> adjusts the camera angle in degrees (like the D button)
>> export_fbx.py - use the the camera angle property.
>> object_cookie_cutter.py - use PointInTriangle2D rather then own
>> function.
>> buttons_shading.c - added OB: and tooltip to object world mapping.
>> interface_draw.c - (Simple theme) text buttons looked exactly like
>> normal buttons (more confusing when they had no text), made the text
>> and ID buttons render inset so you can tell them apart.
>>
> Where did PointInTriangle2D come from? Is it in mathutils?
>
> Joe
Blender.Geometry, nifty since its 2 lines long ;)
#define SIDE_OF_LINE(pa,pb,pp)
((pa[0]-pp[0])*(pb[1]-pp[1]))-((pb[0]-pp[0])*(pa[1]-pp[1]))
#define POINT_IN_TRI(p0,p1,p2,p3) ((SIDE_OF_LINE(p1,p2,p0)>=0) &&
(SIDE_OF_LINE(p2,p3,p0)>=0) && (SIDE_OF_LINE(p3,p1,p0)>=0))
maybe we should have a geometry version of arithb.c since geometry
functions dont belong there.
More information about the Bf-committers
mailing list