> curve.tangent(u) would become something like create_tangent(curve, u)... i 
> have a slight preference for the first.
> 
> I agree, an object oriented approach is definitely better.

Its more complex than that;

the tangency is an attribute of a curve ( see addons/KBE/Level2API.py : 
curve.diff_geom.tangent(u) ).
however, when constructing geometry, for most cases a simple function call 
suffices.
you can see this approach in Utils/Construct.py :  make_box, make_plane, 
make_shell, make_face.
these return TopoDS_* entities.
if you'd like to further inspect / control these resulting object, than the 
Level2API will facilitate doing so in a clean, object oriented manner.

the goal of the level2API is to be as simple as possible, but not simpler.
python != java, so going object-oriented, is not always the cleanest approach.

when discussing the topic, its useful to distinct between constructing and 
inspecting the geometry.

-jelle
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to