# Torus point cloud c source code

The following C project contains the C source code and C examples used for torus point cloud. This code demonstrates how to pick a set of random points on a torus. This "point cloud" can then be used to create a 3d mesh of a torus.

# Computing 3D Normals Article c project and source code

The following C project contains the C source code and C examples used for Computing 3D Normals Article. Someone at school asked me about normals and instead of trying to explain the functions to them I just made this article.

# Straight line and plane intersection in matlab

The following Matlab project contains the source code and Matlab examples used for straight line and plane intersection. %plane_line_intersect computes the intersection of a plane and a segment (or a straight line) % Inputs: % n: normal vector of the Plane % V0: any point that belongs to the Plane % P0: end point 1 of the segment P0P1 % P1: end point 2 of the segment P0P1 % %Outputs: % I is the point of interection % Check is an indicator: % 0 => disjoint (no intersection) % 1 => the plane intersects P0P1 in the unique point I

# Minimum volume enclosing ellipsoid in matlab

The following Matlab project contains the source code and Matlab examples used for minimum volume enclosing ellipsoid. [A , c] = MinVolEllipse(P, tolerance) Finds the minimum volume enclosing ellipsoid (MVEE) of a set of data points stored in matrix P.

# Ellipsoid fitting in matlab

The following Matlab project contains the source code and Matlab examples used for ellipsoid fitting. The code implemented a special case of the ellipsoid fitting technique proposed in the paper Least Squares Ellipsoid Specific Fitting, corresponding to case k= 4.

# Ellipsoid fit in matlab

The following Matlab project contains the source code and Matlab examples used for ellipsoid fit. Fits an ellipsoid into a 3D set of points, allows some constraints, like orientation constraint and equal radii constraint.

# Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes in matlab

The following Matlab project contains the source code and Matlab examples used for volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes . This tool computes the volume inside a sphere in n dimensions, or inside a sphere cap, or inside any part of a sphere that can be defined by two parallel slicing planes.

# Plane intersection in matlab

The following Matlab project contains the source code and Matlab examples used for plane intersection. % Inputs: % N1: normal vector to Plane 1 % A1: any point that belongs to Plane 1 % N2: normal vector to Plane 2 % A2: any point that belongs to Plane 2 %Outputs: % P is a point that lies on the interection straight line.

# Vector plane intersect in matlab

The following Matlab project contains the source code and Matlab examples used for vector plane intersect. Given 1) a line parameterized by a point in 3D space along with a 3x1 vector indicating the line's direction, and 2) the coefficients (a b c) of a plane (z = a*x + b*y + c), vector_plane_intersect calculates the point on the plane at which the line will intersect it.

# Hypersphere n sphere in matlab

The following Matlab project contains the source code and Matlab examples used for hypersphere n sphere.  S = hypersphere( sz )  S = hypersphere( sz, 'fullOrVoid' )  S = hypersphere( sz, matSize )  S = hypersphere( sz, matSize, 'fullOrVoid' )   S is a logical array of size max( sz, matSize ) where "true" (or 1) defines the points of an n-dimensional ellipsoid or sphere, with n == length(sz).

# Are two ellipsoids in contact? algebraic separation condition for ellipsoids in matlab

The following Matlab project contains the source code and Matlab examples used for are two ellipsoids in contact? algebraic separation condition for ellipsoids. A proximity query that is expressed as an algebraic condition for realtime continuous contact detection for ellipsoids moving under rigid body transformations.

# Superformula generator 2d in matlab

The following Matlab project contains the source code and Matlab examples used for superformula generator 2d. This GUI traces a plot of the parametric Superformula of Gielis. You can change parameters and type of plot (polar plot, XY plot, comet plot).

# Marching cubes in matlab

The following Matlab project contains the source code and Matlab examples used for marching cubes. This function uses a vectorized version of the marching cubes algorithm to compute a triangulated mesh of the isosurface within a given 3D matrix of scalar values at a given isosurface value.

# Draws a ellipsoid in matlab

The following Matlab project contains the source code and Matlab examples used for draws a ellipsoid . % ELLIPSOID Draws an ellipsoid.

# Torus datatype in matlab

The following Matlab project contains the source code and Matlab examples used for torus datatype. A Torus is a geometric surface that can be represented by a doughnut: from any point on the surface, moving up/down or left/right will eventually lead you back to where you started, to continue on indefinitely.

# Estimate principal curvatures in matlab

The following Matlab project contains the source code and Matlab examples used for estimate principal curvatures. Given a vector of normals from a point cloud and a query point, estimate the principal curvatures based on the minimum and maximum eigenvalues of neighboring points within a fixed radius.

# The shortest distance from a point to ellipsoid in matlab

The following Matlab project contains the source code and Matlab examples used for the shortest distance from a point to ellipsoid . Compute The shortest distance from a point to Triaxial Ellipsoid or Biaxial Ellipsoid or Sphere x/a)^2+(y/b)^2+(z/c)^2=1 Triaxial Ellipsoid Equation centered at the    origin       Parameters:  * X, [x y z] - A point Cartesian coordinates data, n x 3 matrix or three n x 1 vectors  * axis,[a; b; c] - ellipsoid radii [a; b; c],its axes % along [x y z] axes    For Triaxial ellipsoid ,it must be a > b > c

# Converter cartesian coordinates to geodetic coordinates in matlab

The following Matlab project contains the source code and Matlab examples used for converter cartesian coordinates to geodetic coordinates . Converter Cartesian coordinates to Geodetic coordinates on Triaxial Ellipsoid or Biaxial Ellipsoid or Sphere (x/a)^2+(y/b)^2+(z/c)^2=1 Triaxial Ellipsoid Equation Cartesian To Geodetic x y z ==> B L h  Parameters:  * X, [x y z] - Cartesian coordinatesdata, n x 3 matrix or three n x 1 vectors  * axis,[a; b; c] - ellipsoid radii [a; b; c],its axes % along [x y z] axes    For Triaxial ellipsoid ,it must be a > b > c