From a9ce5a3cb7ac37a7c7b7cdeffa023448d4250684 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Fri, 9 Apr 2021 16:42:24 -0700 Subject: [PATCH] Add section on python bindings (#135) Signed-off-by: Cary Phillips --- docs/PortingGuide2-3.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/PortingGuide2-3.md b/docs/PortingGuide2-3.md index e7cd05d5..3dd79d35 100644 --- a/docs/PortingGuide2-3.md +++ b/docs/PortingGuide2-3.md @@ -478,6 +478,10 @@ Other changes: * When compiling for CUDA, the `complex` type comes from `thrust` rather than `std` +### `Shear6` in ImathShear.h + +* `baseTypeMin()` is replaced with `baseTypeLowest()` + ### ImathVecAlgo.h The following functions are no longer defined for integer-based @@ -517,5 +521,27 @@ vectors, because such behavior is not clearly defined: constructors that take as an argument any data object of similar size and layout. +## Python Changes: + +In general, the changes at the C++ level are reflected in the python +bindings. In particular: + +* The following methods are removed for integer-based + vector and matrix objects and arrays: + + - `length()` + - `normalize()` + - `normalizeExc()` + - `normalizeNonNull()` + - `normalized()` + - `normalizedExc()` + - `normalizedNonNull()` + +* `baseTypeMin()` is replaced with `baseTypeLowest()` for: + - `Vec2`, `Vec3`, `Vec4` + - `Color3`, `Color4` + - `Matrix22`, `Matrix33`, `Matrix44` + - `Box` + - `Shear6`