hopf | 🧣 A graphical program for exploring the Hopf fibration | 3D Animation library

 by   mwalczyk C++ Version: Current License: No License

kandi X-RAY | hopf Summary

kandi X-RAY | hopf Summary

hopf is a C++ library typically used in User Interface, 3D Animation applications. hopf has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

The Hopf fibration is a mapping from S3 to S2 discovered by Heinz Hopf in 1931. Confusingly (at least for me), S3 actually refers to the sphere (or hypersphere) in 4D space. Similarly, S2 refers to the sphere that we are most familiar with in 3D space. To quote Wikipedia: "Hopf found a many-to-one continuous function (or 'map') from the 3-sphere onto the 2-sphere such that each distinct point of the 2-sphere is mapped to from a distinct great circle of the 3-sphere.". The first thing to understand is that a great circle is essentially a "slice" of a sphere that passes through its center. It is difficult to visualize what a great circle on the surface of a 4-dimensional sphere looks like, but luckily, we don't have to. Each of these great circles in the domain of the mapping function forms a "fiber" that we can project down to 3-space. Doing so results in a beautiful structure of nested shapes that appear to be intricately woven together. To be more specific, the mapping treats each point on the surface of S3 as a unit quaternion r = a + b*i + c*j + d*k (a unit quaternion is one whose norm is 1). Next, we pick a "principal point" on S2: in the literature, this is usually a unit vector along one of the standard basis vectors, i.e. <1, 0, 0>. The fiber for any point p on S2 consists of all of the unit quaternions that send the principal point p0 to p, via a rotation in 3-space. For example, let p be the principal point such that p = p0. The fiber corresponding to p is the set of all unit quaternions for any scalar value t. Each of these quaternions, when applied to p0, result in p0 itself. So the question becomes: given any point p on S2, how do we find the set of all quaternions that rotate the principal point to p (i.e. the fiber on S3 that corresponds to p)?.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              hopf has a low active ecosystem.
              It has 38 star(s) with 4 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of hopf is current.

            kandi-Quality Quality

              hopf has 0 bugs and 0 code smells.

            kandi-Security Security

              hopf has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              hopf code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              hopf does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              hopf releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hopf
            Get all kandi verified functions for this library.

            hopf Key Features

            No Key Features are available at this moment for hopf.

            hopf Examples and Code Snippets

            No Code Snippets are available at this moment for hopf.

            Community Discussions

            QUESTION

            Color point by distance from origin
            Asked 2021-Oct-05 at 12:45

            Here is a Hopf torus created in Python with PyVista:

            ...

            ANSWER

            Answered 2021-Oct-05 at 12:44

            As a side note, at least to me it's clearer to compute the magnitude of the points yourself and set those as scalars (rather than relying on the magnitude of vector data as scalars for colour mapping, even though this is supported and valid).

            What you're missing is just a choice of colourmap. The default, just like with matplotlib, is viridis. Instead it seems you want jet (although I'd recommend against this; perceptually uniform colourmaps are preferable in most cases for data visualization):

            Source https://stackoverflow.com/questions/69448556

            QUESTION

            How to smooth pyvista.StructuredGrid?
            Asked 2021-Oct-05 at 12:37

            Here is a Hopf torus made in Python with PyVista:

            ...

            ANSWER

            Answered 2021-Oct-05 at 12:37

            I think what's going on here is that there's no connectivity information where the two ends of your structured grid meet. One way to fix this is to turn your grid into a PolyData using the extract_geometry() method, and then using clean with a larger tolerance. This will force pyvista to realise that there's a seam in the mesh where points are doubled, causing the points to be merged and the seam closed:

            Source https://stackoverflow.com/questions/69447959

            QUESTION

            My three.js application is not running on mobile
            Asked 2020-Sep-29 at 21:07

            I am running iOS 13.7 on an iPhone and all the three.js examples I tried (including the ones on fat lines and orbit controls) work flawlessly on my mobile device.

            However, I do not seem to be able to get my own code running on mobile, see the source code and the uploaded website for reference. It works on both Edge and Chrome on my Windows computer.

            This answer suggested adding "use strict"; to all .js files, which I did even for the imported modules, but to no avail.

            Any ideas or hints on what could be breaking my JavaScript code for mobile?

            This how the modules were included in hopf.js:

            ...

            ANSWER

            Answered 2020-Sep-29 at 21:07

            Your website isn't running on Firefox either. If you open the console, you'll see the error:

            Uncaught SyntaxError: private fields are not currently supported

            which is happening on the line that uses #distanceToCenter_radians; because the # symbol is a reserved key to declare a private field. I recommend you remove it to improve browser compatibility. Looking at the support table, private fields don't work on Firefox and any Safari below 14.0

            EDIT

            After fixing the Firefox bug, I tested it on Safari, and I ran into this error in the console:

            This is because your baseSpaceCircle class uses public class fields, which are not supported by Safari until version 14.0+.

            Source https://stackoverflow.com/questions/64068230

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install hopf

            Clone this repo and initialize submodules:
            From the root directory, run the following commands:
            Open the project file for your IDE of choice (generated above)
            Build and run the project

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/mwalczyk/hopf.git

          • CLI

            gh repo clone mwalczyk/hopf

          • sshUrl

            git@github.com:mwalczyk/hopf.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular 3D Animation Libraries

            assimp

            by assimp

            angle

            by google

            s2geometry

            by google

            sverchok

            by nortikin

            rayshader

            by tylermorganwall

            Try Top Libraries by mwalczyk

            flow

            by mwalczykC++

            four

            by mwalczykRust

            sdfperf

            by mwalczykRust

            vkstarter

            by mwalczykC++

            marching-cubes

            by mwalczykC++