Skip to content

Commit

Permalink
Add section on python bindings (AcademySoftwareFoundation#135)
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed May 13, 2021
1 parent 425bcd7 commit 0c7f24a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/PortingGuide2-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,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
Expand Down Expand Up @@ -503,5 +507,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`

0 comments on commit 0c7f24a

Please sign in to comment.