Giter Club home page Giter Club logo

Comments (7)

kronpano avatar kronpano commented on August 26, 2024 2

Yes, the notation works and it also seems to work in docs but not in the main editor
The example fails as soon as long as box is uncommented with
render.js:266 Cannot read property 'isBufferGeometry' of null

Comment the box out and everything works.
Also the script works if you copy it over to https://after12am.github.io/eisenscript-docs/build/docs/reference-primitives
So I guess it is a deployment problem.

from eisenscript.

after12am avatar after12am commented on August 26, 2024

@kronpano fix it. Please check it out!

https://after12am.github.io/eisenscript-editor/#B/KynKTMxLz0mNNtABQmtDMGmgZ6oDxbEA

from eisenscript.

kronpano avatar kronpano commented on August 26, 2024

It works - yes - but all the numbers need to be positive
A triangle like
triangle[-1,0,1;0,1,0;1,0,1]
is not accepted because of the -1

I usually try to define my triangles around 0,0,0 so rotations are easier to handle.

Also - and yes - that is also the case in StructureSynth - the triangle is only visible from one side. That means you need to define always 2 triangles - one clockwise and one counter clockwise to make sure it can be seen from both sides.
Might be a nice touch to just make it visible from both sides??

from eisenscript.

after12am avatar after12am commented on August 26, 2024

Ok! I am in travel now. So I will fix it until this weekend.

from eisenscript.

after12am avatar after12am commented on August 26, 2024

@kronpano

It works - yes - but all the numbers need to be positive
A triangle like
triangle[-1,0,1;0,1,0;1,0,1]
is not accepted because of the -1

fixed it!

https://after12am.github.io/eisenscript-editor/#B/KynKTMxLz0mN1jXUMdAxtAZiHQNrMDsWAA==

Might be a nice touch to just make it visible from both sides??

When using transparent, you can render both sides.

https://after12am.github.io/eisenscript-editor/#B/q1ZIVNCztFSoVSgpykzMS89JjdY11DHQMbQGYh0DazA7FgA=

When not using transparent, you also need to define always 2 triangles.
Because the rendering way is different. Performance is a priority when transparency is not used.

from eisenscript.

after12am avatar after12am commented on August 26, 2024

When not using transparent, you also need to define always 2 triangles.
Because the rendering way is different. Performance is a priority when transparency is not used.

Fixed it. Now you specify only one side.

https://after12am.github.io/eisenscript-editor/#B/KynKTMxLz0mNNtABQmtDMGmgZ6oDxbEA

from eisenscript.

after12am avatar after12am commented on August 26, 2024

Wow! You found it!

from eisenscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.