Surfaces

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

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.

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.

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.

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
Subscribe to RSS - Surfaces