Comments (8)
How import CompositeTransform() class?
Assume I have a cloud of points and want to apply at low level a CompositeTransform() class, I don't realize how to import this class.
from polliwog.
from polliwog import CompositeTransform
from polliwog.
from polliwog import CompositeTransform
I am sorry for the trivial questions but the documentation for increase the userability of the package would boost the trial and error curve :/
from polliwog.
from polliwog import CompositeTransformI am sorry for the trivial questions but the documentation for increase the userability of the package would boost the trial and error curve :/
Am I wrong in something?
from polliwog.
from polliwog import CompositeTransform
I am sorry for the trivial questions but the documentation for increase the userability of the package would boost the trial and error curve :/Am I wrong in something?
Solved.
x0y0=np.array([0.0, 0.0, 0.0])
from polliwog.transform import CompositeTransform
transform = CompositeTransform()
transform.translate(np.array([0.0, 0.0, 1.0]))
x0y0z0=transform(x0y0)
from polliwog.
What version of polliwog are you running? Be sure you are on 1.0.0b11.
> python3
Python 3.8.6 (default, Oct 27 2020, 08:57:44)
[Clang 12.0.0 (clang-1200.0.32.21)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from polliwog.transform import CompositeTransform
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'CompositeTransform' from 'polliwog.transform' (/Users/pnm/code/polliwog/polliwog/transform/__init__.py)
>>> from polliwog import CompositeTransform
>>> import polliwog
>>> polliwog.__version__
'1.0.0b11'
from polliwog.
Have you seen the documentation, by the way? https://polliwog.readthedocs.io/en/latest/
from polliwog.
What version of polliwog are you running? Be sure you are on 1.0.0b11.
> python3 Python 3.8.6 (default, Oct 27 2020, 08:57:44) [Clang 12.0.0 (clang-1200.0.32.21)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from polliwog.transform import CompositeTransform Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'CompositeTransform' from 'polliwog.transform' (/Users/pnm/code/polliwog/polliwog/transform/__init__.py) >>> from polliwog import CompositeTransform >>> import polliwog >>> polliwog.__version__ '1.0.0b11'
Correct,
I uploaded to newer version and the importing is like you wrote.
Have you seen the documentation, by the way? https://polliwog.readthedocs.io/en/latest/
I was on /stable and looks slightly different from the one I am reading now.
Thank you,
I will let you know :)
from polliwog.
Related Issues (20)
- estimate_normal: Move to plane, test, and refactor HOT 1
- Clean up matrix functions
- Remove partition_segment_old HOT 1
- Document remaining undocumented functions HOT 1
- Convert `Polyline.partition_by_length()` to work on a copy
- Move named coordinate planes to more prominent imports
- Renames
- Remove mentions of Lace in the documentation
- Add ToC to documentation
- Rework `create_rectangle()` HOT 1
- Consider renaming Plane `points_in_front()` method to `points_on_or_in_front()`
- Fix regression in NumPy 1.19.0 HOT 1
- Add function for slicing triangles by a plane HOT 1
- Line intersect ... clarification HOT 11
- Efficient computing local rotation of point clouds/polylines and so forth
- Can't create shapes with int size
- Add `point_nearest_to_line()` function
- Polyline: Add `round()` method
- Polyline: Add `serialize()` and `deserialize()` methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polliwog.