hopf | 🧣 A graphical program for exploring the Hopf fibration | 3D Animation library
kandi X-RAY | hopf Summary
kandi X-RAY | hopf Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hopf
hopf Key Features
hopf Examples and Code Snippets
Community Discussions
Trending Discussions on hopf
QUESTION
Here is a Hopf torus created in Python with PyVista:
...ANSWER
Answered 2021-Oct-05 at 12:44As 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):
QUESTION
ANSWER
Answered 2021-Oct-05 at 12:37I 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:
QUESTION
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:07Your 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
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+.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hopf
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page