Skip to main content

Questions tagged [geometric-transform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
272 views

How Can I Relax a Molecule in Mathematica?

I have a molecule in Mathematica. It consists of around 70 atoms, but let us for simplicity assume that we only have four atoms: ...
flg's user avatar
  • 21
1 vote
1 answer
99 views

Bug in GeometricTransformation

Is this bug in newer versions of Mathematica still present? Cube is deformed with rotation angle being odd multiply of Pi/2. ...
azerbajdzan's user avatar
  • 20.1k
4 votes
2 answers
146 views

How to efficiently duplicate and rotate a graphics object?

Consider the following code ...
sam wolfe's user avatar
  • 4,903
1 vote
1 answer
155 views

How to rotate a 2-body system about various independent axes with body-fixed pivot points/rotation origins?

I am trying to simulate a jointed two-body system on Mathematica, consisting of these components: "Beam" and "Plate". I am constraining the system such that the beam is always ...
Richard Casey's user avatar
1 vote
1 answer
101 views

Metric tensor coordinate transformation with off-diagonal components

I know there is already an answer for this type of question given here: Computing the metric tensor under a coordinate transformation but the answer is not satisfactory as it is not clear to me how I ...
MathZilla's user avatar
  • 123
2 votes
2 answers
77 views

Defining the rotation axis independent of the origin [closed]

I tried to rotate a 3D object in Graphics3D using GeometricTransformations with ...
Cptn Bluebear's user avatar
2 votes
2 answers
48 views

Show the translated version of a plot alongside another graphics object

I want to demonstrate the fact that the main part of a Mandelbrot fractal is consisted of a cardioid and some circles. So at first, I wrote this line: ...
polfosol's user avatar
  • 952
4 votes
3 answers
172 views

Problem with FindGeometricTransform and NMinimize

I'm interested in Centroidal Voronoi tessellation. Here are two examples of unit disk tessellations: They are the same with respect to rotation. Recently, I've found ...
lesobrod's user avatar
  • 1,846
0 votes
0 answers
63 views

Weird behaviour of TransformedRegion and GeometricTransformation

What I would like to do is to take some polyhedra (such as Cuboids, Prisms, and ...
Liam Baker's user avatar
3 votes
1 answer
113 views

How to identify ellipses in grainy images and measure their position, semi-axes and orientation?

I am trying to analyze images of elliptical laser beams that are striking 'ground glass' surfaces. I need to determine the size, position and orientation of the ellipse that represents the boundary of ...
Drotar's user avatar
  • 107
4 votes
2 answers
217 views

Fill ParametricPlot3D into 3D solid shape

i have data point and transform it with matrix and plot with ParametricPlot3D and look like this my goals is to fill this and get the centroid with ...
葉柏樂's user avatar
  • 157
0 votes
0 answers
56 views

Combining two 3D objects

At this post How to combine one or more rotated graphics objects? There is a neat trick for combining 2D objects. When I apply it to 3D it does not work This code of a pyramid on a cube to approximate ...
Rogo's user avatar
  • 940
0 votes
2 answers
93 views

Distinguish the number of parameters of a function

I am looking to do a generalist job. For that I need to know the number of parameters. For now I'm using a true/false: ...
Colur Kenr's user avatar
0 votes
0 answers
50 views

oblique parallelepiped

I'm looking from a sketch of the 2D rectangle style, like this : Extrude[Rectangle[{1, 6}], Line[{{0}, {1}}]] But I want to extrude it in an oblique direction in ...
Colur Kenr's user avatar
3 votes
3 answers
255 views

Create a new graph based on a manipulated circle

I make a circle based on CirclePoints. From this list of points I take a part and rotate the coördinaties. Then I join the rotated part with the rest of the circelPoints. For example ...
Michiel van Mens's user avatar
1 vote
1 answer
113 views

Revolution of a 2D graphics

I would like to know how can we make a revolution around an axis of a 2D shape (a rectangle for example). I saw that there is the RevolutionPlot function but I can't manage to use it. I would also ...
Colur Kenr's user avatar
0 votes
2 answers
76 views

Material removal in a geometric shape

I want to do the same as in this program but drilling the rectangle in another direction, along an axis other than that of the cylinder : ...
Colur Kenr's user avatar
1 vote
3 answers
167 views

Extruding a geometric shape along a path

I want to translate a 2D shape (a rectangle) along a path (a vector) in order to have a 3D shape, the same way extruding works in CAD software. In this answer, there is only a way to do it for a ...
Colur Kenr's user avatar
0 votes
1 answer
75 views

Fourier-Bros-Iagolnitzer transform

I would like to calculate the FBI transform of a set of Fourier series functions. The formula is: and here, $a$ and $n$ are integers, where $n=2$ since I have a 2-dimensional function to consider and ...
Superunknown's user avatar
1 vote
0 answers
34 views

Applying a `GeometricTransformation` to an `AxisObject` along an `InfiniteLine`

I want to take a list of graphics primitives and draw them on top of another set of graphics primitives, using a child coordinate system. To do this, I'm using a ...
Ben's user avatar
  • 323
2 votes
2 answers
172 views

Obtain coordinates from GeometricTransformation

What is the best way to obtain the transformed polygon coordinates? In the example below g3 still contains ...
Chris Degnen's user avatar
1 vote
1 answer
60 views

Transform a RegionFunction in ContourPlot3D problem

The (inspired) solution by @aardvark2012 to this original question: Transform a RegionFunction in ContourPlot3D worked well until an update appears to have changed the expected behavior (some time ...
DrBubbles's user avatar
  • 1,391
2 votes
1 answer
116 views

Mathematica generating 'incorrect' Cuboids

Mathematica 13.1 for some reason gives an error for the following code: ...
Liam Baker's user avatar
1 vote
0 answers
35 views

Numerical values versus exact values in GeometricTransformation

I have been doing some geometric transformations in 3D. The code bellow should transform (rotate) two black lines into red and blue tubes. At first I used exact values of coordinates and the result ...
azerbajdzan's user avatar
  • 20.1k
1 vote
0 answers
32 views

How to undo (cancel) manual rotations with GeometricTransformation

How to dynamically transform an object inside Graphis3D so that when whole Graphis3D is manually rotated by pointer the object ...
azerbajdzan's user avatar
  • 20.1k
0 votes
1 answer
84 views

Code to do geometric transformation equivalent to dragging by mouse in circle

We can click and drag Graphics3D objects. Suppose you click and drag on such an object in the center of it and move your pointer of mouse in a circle of radius <...
azerbajdzan's user avatar
  • 20.1k
2 votes
0 answers
57 views

Is it possible to extract geometric transforms from ImageStitch (Mathematica 13)?

Is there a way to extract the Method settings and/or geometric transforms that ImageStitch[] (Mathematica 13) uses to compose a list of images? I have ~40 digital microscope image frames along with ...
Adam's user avatar
  • 91
3 votes
1 answer
96 views

How to "restart" AnglePath3D[]?

Suppose we start a random path in 3D, stopping at the $5^{th}$ step. Importantly, we make a new random orientation at every new step. ...
TumbiSapichu's user avatar
  • 1,613
0 votes
1 answer
254 views

How to project a 2D region from one plane to another?

I have one of a general set of 2D regions (Disk, Rectangle, Polygon, etc.), as well as 3D origin points and normal vectors defining two reference planes/coordinate systems. I want to find a series of ...
CacophonyofVoices's user avatar
5 votes
2 answers
174 views

Strange behaviour in GeometricTransformation

Bug introduced in 13.0 **Bug is fixed in Version 13.1 ** I came across the following strange behaviour with the GeometricTransformation function. ...
Dunlop's user avatar
  • 4,083
0 votes
1 answer
69 views

Replicate atomic coordinates in x, y direction [closed]

I have x and y coordinates of a lattice. I want to replicate the system in x and y directions. Can you please guide me on this.
Shen's user avatar
  • 7
1 vote
2 answers
177 views

How to linear transform an equation?

I want to scale transform the equation (not the graph) of a circle. Specifically, I want to scale 4x by the x-axis and 3x by the y-axis. I use the following ...
Richard's user avatar
  • 49
3 votes
2 answers
175 views

Transform a region using the flow of differential equation

I was looking to apply a nonlinear transformation to a geometric region, say a rectangle to obtain a transformed region. According to the documentation for TransformedRegion, one requires a Region and ...
NoobNoob's user avatar
  • 159
2 votes
0 answers
121 views

FindRegionTransform again

Bug introduced in 13.0.0 [CASE:4895492] [CASE:4895697] Studying a new command of version 13.0.0 FindRegionTransform, I execute an example from the documentation: <...
user64494's user avatar
  • 27.3k
1 vote
0 answers
63 views

Possible bug in FindRegionTransform

Studying a new command FindRegionTransform of version 13.0.0 on Windows 10, I try to reproduce an example from the documentation , but obtain a different result <...
user64494's user avatar
  • 27.3k
1 vote
0 answers
126 views

Obtain angles of rotation from singular vectors U and V from SVD

My question is a continuation to a previous question. I have a matrix M which is a function of theta1, theta2, phi1 and phi2. Now, I want to get back these angles using the singular vectors (U and V) ...
priyBang's user avatar
3 votes
1 answer
95 views

Normal not working with Translate and some Graphics object [duplicate]

in v13, Normal doesn't seem to work with Translate and some Graphics objects like Rectangle ...
alancalvitti's user avatar
  • 15.2k
0 votes
1 answer
82 views

Can someone please help me in breaking down what this code means?

I hope someone can assist me as I am pretty new to Mathematica and understanding the language is a bit of a hurdle. I am trying to rotate a plot of interlaced circles by some angle without rotating ...
Jetty's user avatar
  • 1
-1 votes
1 answer
77 views

3D shearing w. r. t. x-axis [closed]

Shearing in $X$ axis is achieved by using the following shearing equations- X_new = X_old, Y_new = Y_old + Sh_y × X_old, Z_new = Z_old + Sh_z × X_old My question is during Y_new and Z_new calculations ...
S. M.'s user avatar
  • 99
1 vote
1 answer
178 views

How to use VectorAngle[] in AnglePath3D[]?

Suppose I have a specific angle that I calculate from two vectors, in 3D: ...
TumbiSapichu's user avatar
  • 1,613
0 votes
2 answers
170 views

How to align two ellipsoids along center and long axes?

I'm struggling to understand rotation/translation transforms as applied to things like spheres and ellipsoids. Take the following silly example. Given this pair of random ellipsoids, how do I find a ...
TumbiSapichu's user avatar
  • 1,613
1 vote
2 answers
161 views

Transfer distribution of points on a sphere to an Ellipsoid[]?

I've seen this cool function, which generates a given distribution of points on the unit sphere, known as Dimroth-Watson distribution: ...
TumbiSapichu's user avatar
  • 1,613
0 votes
1 answer
109 views

On the geometric transformations of polygons

Each starry set has the following property: ...
Monster's user avatar
  • 335
1 vote
0 answers
157 views

Image Perspective Transformations

I'm trying to detect the license plate in these types of images which may be captured from various perspectives and lighting I've found it easiest to detect these two points corresponding to the ...
user2757771's user avatar
6 votes
2 answers
281 views

Hyperbolic tiling of 3d objects

I have created a 3d object using plot3d and want to try and tile it hyperbolicly. It has a hexagonal cross section and it's the hexagons that I want to tile. Is there a way I can take an object and ...
Tobias Nash's user avatar
2 votes
0 answers
92 views

How to apply GeometricTransformation to ArrayPlot?

In a previous version of Mathematica (maybe version 7), it was possible to use GeometricTransformation on an ArrayPlot. That ...
D Yong's user avatar
  • 21
3 votes
0 answers
182 views

Sweep, scale, and rotate implicit 3d region or contour plot along an arbitrary curve

Suppose I have a 3d region or contour that is implicitly defined and has no explicit parameterization. This is easy to plot, as RegionPlot3D and ContourPlot3D allow implicit functions. But now I want ...
Nickolas's user avatar
  • 121
2 votes
2 answers
548 views

Is it possible to directly translate or rotate a Graphics or Graphics3D object?

I have seen the documentation for Translate (https://reference.wolfram.com/language/ref/Translate.html), which allows one to translate a graphics primitive (like <...
ap21's user avatar
  • 553
11 votes
2 answers
549 views

Distorting image to ensure consistent vanishing point

Here's Giorgio de Chirico's painting, Ariadne: The Surrealist artist deliberately broke the rules of geometric perspective, giving the work his characteristic sense of mystery and unease. What would ...
David G. Stork's user avatar
0 votes
2 answers
454 views

Random rotation at a given angle?

I need to generate a random rotation matrix for a given angle $a$. In other words, a random $n\times n$ matrix $A$ such that for any unit-length vector $v$ the following is true. $$v'Av\le\cos a$$ The ...
Yaroslav Bulatov's user avatar