Your issues seem to stem from using the latest stable release of pythreejs,
rather than the latest alpha - the features you talk about are only
available in the latest alpha. I will be updating the latest alpha soon as
well.

You can add components to a scene by creating a new children array and
setting the scene children to the new array.

Thanks,

Jason


On Thu, Jul 6, 2017 at 11:02 PM <[email protected]> wrote:

> Hi Jason,
>
> Thanks for creating this and for all your help. I am making major leaps
> forward, and can now generate line and face geometry using the
> PlainGeometry class. I am currently trying to use your 'Indexed Geometries'
> example and also your 'Buffered' example, but both of them fail. I have
> managed to get them to display, but I have to make the following changes:
>
>    1. It doesn't like the numpy arrays for vertices and faces, so I
>    changed them to lists of lists.
>    2. It doesn't like the colors provided as a numpy array of tuples,
>    then when I changed this into a list of tuples it still complained, then I
>    changed it into a list of lists, but that still didn't work, so I changed
>    it into a list of  explicit colors, such as ['red', 'red', ...], at which
>    point it would run, but it did not show any colors. It now shows a white
>    cube against a black background.
>    3. It doesn't like the PlainBufferedGeometry, complaining,   NameError:
>    name 'PlainBufferGeometry' is not defined
>
> Do you have any idea why this is?
>
> Also, I would really appreciate it if you could tell me (or show me) how
> to add components to a scene (rather than place them all in there at one
> time). I tried 'scene.add', but it didn't like that.
>
> Thanks,
> Andrew
>
> (.\threejstest) C:\Anaconda3>conda list
> # packages in environment at C:\Anaconda3\envs\threejstest:
> #
> bleach                    1.5.0                    py36_0    conda-forge
> certifi                   2017.4.17                py36_0    conda-forge
> colorama                  0.3.9                    py36_0    conda-forge
> decorator                 4.0.11                   py36_0    conda-forge
> entrypoints               0.2.3                    py36_1    conda-forge
> html5lib                  0.9999999                py36_0    conda-forge
> ipykernel                 4.6.1                    py36_0    conda-forge
> ipython                   6.1.0                    py36_0    conda-forge
> ipython_genutils          0.2.0                    py36_0    conda-forge
> ipywidgets                6.0.0                    py36_0    conda-forge
> jedi                      0.10.0                   py36_0    conda-forge
> jinja2                    2.9.5                    py36_0    conda-forge
> jsonschema                2.5.1                    py36_0    conda-forge
> jupyter_client            5.1.0                    py36_0    conda-forge
> jupyter_core              4.3.0                    py36_0    conda-forge
> markupsafe                1.0                      py36_0    conda-forge
> mistune                   0.7.4                    py36_0    conda-forge
> nbconvert                 5.2.1                    py36_1    conda-forge
> nbformat                  4.3.0                    py36_0    conda-forge
> notebook                  5.0.0                    py36_0    conda-forge
> pandoc                    1.19.2                        0    conda-forge
> pandocfilters             1.4.1                    py36_0    conda-forge
> pickleshare               0.7.3                    py36_0    conda-forge
> pip                       9.0.1                    py36_0    conda-forge
> prompt_toolkit            1.0.14                   py36_0    conda-forge
> pygments                  2.2.0                    py36_0    conda-forge
> python                    3.6.1                         3    conda-forge
> python-dateutil           2.6.0                    py36_0    conda-forge
> pythreejs                 0.3.0                    py36_0    conda-forge
> pyzmq                     16.0.2                   py36_2    conda-forge
> setuptools                33.1.1                   py36_0    conda-forge
> simplegeneric             0.8.1                    py36_0    conda-forge
> six                       1.10.0                   py36_1    conda-forge
> testpath                  0.3                      py36_0    conda-forge
> tornado                   4.5.1                    py36_0    conda-forge
> traitlets                 4.3.2                    py36_0    conda-forge
> vs2015_runtime            14.0.25420                    0    conda-forge
> wcwidth                   0.1.7                    py36_0    conda-forge
> webencodings              0.5                      py36_0    conda-forge
> wheel                     0.29.0                   py36_0    conda-forge
> widgetsnbextension        2.0.0                    py36_0    conda-forge
> wincertstore              0.2                      py36_0    conda-forge
>
>
>
>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAPDWZHyFU9JorWS5UE8Ers8XtvEcfSa1nW4gm5GVR__1oOaRYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to