Fast computation of intersections and self-intersections of curves using vectorization.
While a few other functions already exist in FEX that compute the intersection points of curves, this short piece of code was written with speed being the highest priority. No loops are used
- 30.7K (All time)
- 29 (Last 30 days)
- 4.7 / 5
- Community
-
24 Sep 2010
- 44.6K (All time)
- 16 (Last 30 days)
- 4.9 / 5
- Community
-
31 May 2024
Intersection of two triangulated surfaces
Function calculates intersection of any two triangulated surfaces using triangle/triangle intersection algorithm proposed by Tomas Möller (1997) and implemented as highly vectorized MATLAB code. The
- 4.4K (All time)
- 6 (Last 30 days)
- 4.8 / 5
- Community
-
1 Dec 2014
Analyze N-dimensional Convex Polyhedra
Find vertex or (in)equality forms of convex polyhedra in R^n (for n not super large). Also, compute their intersections and unions.
column vectors, respectively. The (in)equality representation expresses the polyhedron as the intersection of two regions. One region is a solid N-dimensional shape, described by the inequalities, while
- 6.6K (All time)
- 7 (Last 30 days)
- 4.9 / 5
- Community
-
21 Mar 2021
straight line and plane intersection
plane_line_intersect computes the intersection of a plane and a segment(or
%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
- 7.9K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
27 Nov 2007
Fast vectorized triangle/ray intersection algorithm
Ray/triangle intersection using the algorithm proposed by Möller and Trumbore (1997), implemented as highly vectorized MATLAB code. The algorithm can work with one and two sided surfaces, as well as
- 6.6K (All time)
- 14 (Last 30 days)
- 4.6 / 5
- Community
-
18 May 2018
Fast Line Segment Intersection
Finds the pairwise intersection points between line segments in 2D Cartesian space.
OUT = LINESEGMENTINTERSECT(XY1,XY2) generates intersection analysis between the line segment sets given in XY1 and XY2. Code can handle coincident and parallel lines.The main emphasis is on speed
- 7.8K (All time)
- 2 (Last 30 days)
- 4.9 / 5
- Community
-
10 Apr 2010
- 2.6K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
13 Dec 2006
It computes the intersection of two planes in space.
and Plane 2 coincide% 2:Plane 1 and Plane 2 intersect)% Example:% Determine the intersection of these two planes:% 2x - 5y + 3z = 12 and 3x + 4y - 3z = 6% The first plane is
- 4.9K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
2 Apr 2011
- 5.5K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
1 Nov 2004
Fast mesh-mesh intersection using ray-tri intersection with octree spatial partitioning.
Fast mesh-mesh intersection based on ray-tri solution. Octree partitioning gives large speed-up.
% Putative points of intersection between each pair of surfaces are located% by assuming that each constituent mesh triangle edge represents an% infinitesimal ray, then solving the ray-triangle
- 1.2K (All time)
- 5 (Last 30 days)
- 5.0 / 5
- Community
-
16 Feb 2015
Intersection of Line to Generalized Ellipse
This function returns the points of intersection between a line and a generalized ellipse
- 507 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
13 Jun 2014
Mathematical intersection of range composed of a union of intervals
Purpose: Range/interval intersectionA and B two ranges of closed intervals written as vectors [lowerbound1 upperbound1 lowerbound2 upperbound2] or as matrix [lowerbound1, lowerbound2, lowerboundn
- 1.3K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
30 May 2012
Hardware accelerated ray-triangle intersection
GPU portable implementation of the ray-triangle intersection method of Moller and Trumbore (1997)
% Ray-triangle intersection algorithm of Muller and Trumbore (1997)% formatted for arrayfun to allow hardware acceleration% Call with gpuarray and arrayfun to execute on the GPU: thjs% may give two
- 865 (All time)
- 2 (Last 30 days)
- 4.8 / 5
- Community
-
13 Feb 2015
This is a Graphical User Interface to calculate the Yaw Moment Diagram and Phase Portrait of a vehicle based on the bicycle model.
- 1.4K (All time)
- 10 (Last 30 days)
- 5.0 / 5
- Community
-
5 Mar 2021
Finds the intersection points between two arbitrary polygons.
segments with non-increasing x-values.DescriptionCalculate the intersection points of two 2D-lines / polygons.Usage[X,Y]=CURVEINTERSECT(H1,H2) or [X,Y]=CURVEINTERSECT([H1 H2
- 11.5K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
16 Feb 2007
Compute the intersection of a cone and a plane, where the result is represented as an ellipse
This function computes the intersection of a cone and a plane, where the result is represented either as an ellipse or in the form of a Gaussian distribution.This algorithm can be used to extract
- 2.9K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
24 Jul 2009
Corneal Topography: Constructing Curvature Topography from Placido Rings Image
Corneal Topography: Constructing Curvature Topography from Placido Rings Image
- 278 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
26 Aug 2016
Line plane intersection [FAST]
A function to compute the intersection between a parametric line of the 3D space and a plane.
Please first check the examples tab (.mlx file) here on the right for a complete description.Once downloaded, typewrite 'help line_plane_intersection' or 'doc line_plane_intersection' in Matlab
- 798 (All time)
- 3 (Last 30 days)
- 4.7 / 5
- Community
-
15 Jul 2024
Finding zeros and intersections
With data (x,y), the function finds "x" that correspond to y=y0.
- 834 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
3 Dec 2009
Calculate intersection point of two 2d lines specified with 2 points each
Calculate intersection point of two 2d lines specified with 2 points each(X1, Y1; X2, Y2; X3, Y3; X4, Y4), while 1&2 and 3&4 specify a line.Gives back NaN or Inf/-Inf if lines are parallel (=
- 1.6K (All time)
- 1 (Last 30 days)
- 4.2 / 5
- Community
-
13 Mar 2012
Intersection Arbitrary Ellipsoid and a Plane
This function computes the intersection any Ellipsoid and a Plane,
Arbitrary ELIPSOID and A PLANE INTERSECTION function[Aye,Bye,qx,qy,qz]=intersection_elipsoid_plane2(elp,plane) % Plane equation AA.x + BB.y + CC.z+ DD = 0% Standart Ellipsoid equation
- 656 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
27 Jul 2023
A function to compute the intersection point between two lines of the space (3D or 2D)
Please first check the examples tab (.mlx file) here on the right for a complete description.Once downloaded, typewrite 'help lines_intersection' or 'doc lines_intersection' in Matlab console for
- 198 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
16 Jul 2024
Intersection point of lines in 3D space
Finding intersection point of lines in 3D space (two or more lines).
Finding intersection point of lines in 3D space (two or more lines). Will return point with the minimum sum of squared distances from point to lines (LSM-method, using pseudoinverse). % PA :
- 3.2K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jun 2012
- 488 (All time)
- 9 (Last 30 days)
- 4.5 / 5
- Community
-
10 Dec 2020
Ray/triangle intersection using the algorithm proposed by Möller and Trumbore (1997)
Ray/triangle intersection using the algorithm proposed by Möller and Trumbore (1997). The zip file includes one example of intersection.References:[1] "Real Time Rendering". Third Edition. Tomas
- 4.4K (All time)
- 2 (Last 30 days)
- 4.5 / 5
- Community
-
18 Aug 2009
The beginnings of an optical raytrace program with partial GUI interface
- 552 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
11 May 2017
This function finds the intersection point of two lines.
This function uses a method of determinants to find the intersection of two linear lines. Inputs into this function are coordinates of two lines (vectors) i.e. Line1 = [(x11,y11);(x12,y12)] and
- 504 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
8 Sep 2011
Given the homogeneous matrices of two conics it recovers the (up to) four intersection points
conics, the code will detect all their intersections.For instance:___________________%a circle centered in the originE1 = [1 0 0; 0 1 0; 0 0 -3]%an ellipse centered in the originE2 = [1 0 0; 0 3 0; 0 0
- 1.5K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
30 Aug 2015
Intersection of linear subspaces
Function for finding the basis of the intersection of N subspaces
This function returns the basis of the intersection of N subspaces defined by their bases, and the dimension of this intersection. The input basis vectors must be row vectors!Example:A = [1,1,-1,1
- 760 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
6 Jul 2011
VANET node - RoadSide Unit scenario simulations
This file contains matlab simulations of nodal interaction scenarios in VANETs
intersection urban city block VANET node-VANET node interactions each file has a simulation and can be run independently. comments are added in the file for explanation. please feel free to ask
- 3.6K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
21 May 2013
- 5.2K (All time)
- 14 (Last 30 days)
- 5.0 / 5
- Community
-
27 Jan 2015
Find the intersection points of the edges of two 2D polygons
Find the intersection points of the edges of two 2D polygons, a simple function made to follow up a Newsgroup discussion
- 2.7K (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
20 May 2010
A function to compute the intersection between two planes of the 3D space.
Please first check the examples tab (.mlx file) here on the right for a complete description.Once downloaded, typewrite 'help planes_intersection' or 'doc planes_intersection' in Matlab console for
- 157 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jul 2024
Optometrika MATLAB library implements analytical and iterative ray tracing approximation to optical image formation using Snell’s and Fresne
user-defined (general) surfaces is significantly slower due to iterative search of ray intersections with the surface. Thank you for downloading Optometrika, enjoy it!————————————————————List of
- 11.8K (All time)
- 7 (Last 30 days)
- 4.8 / 5
- Community
-
18 Jan 2022
Multiple curve and line intersection.
many line and curve intersection.
easy to use for any type of line and curve intersection with example.
- 179 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
5 May 2021
Constrain the vertices of a Voronoi decomposition inside the input rectangular cuboid domain.
- 638 (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
2 Apr 2020
- 4K (All time)
- 21 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jul 2024
grain and particle analysis with line intersection method
This GUI allows you to analyze the size of grains in a micrograph with the 'line cut' method.
This program allows you to analyze the size of grains in a micrograph with the intersection method arranged in a user-friendly GUI.After loading the micrograph the program puts lines on the surface
- 4K (All time)
- 15 (Last 30 days)
- 4.6 / 5
- Community
-
2 Apr 2012
AMebius-slicer(STL slicer, gcode generator for 3D print)
A stl files slicer to generate gcode file for real printing
two adaptive algorithm(not guarantee accurate).Please use Cura to preview slice result before real printhttps://ultimaker.com/software/ultimaker-curaOne of key process triangle_plane_intersection is
- 677 (All time)
- 5 (Last 30 days)
- 5.0 / 5
- Community
-
13 Jun 2021
Plotting intersection curves for implicit surfaces
Plot intersection curves for implicit surfaces
Implicit surfaces can be plotted with the isosurface function, but to my knowledge there is no function for plotting the intersection curve between two implicit surfaces. The isocurve3 function
- 144 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
2 Mar 2016
In order to evaluate union or intersection operation under type2.
This function shall be used to evaluate the union or intersection between fuzzy sets or fuzzy relation under type2 category.For a complete understanding Please refer book by Dr. Jerry M. Mendel on
- 2.3K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
11 Nov 2002
VANET Toolbox: A Vehicular Network Simulator based on DES
The simulator, VANET Toolbox, currently support V2V communication with lane changing, car following activities. V2I is under development.
- 4.9K (All time)
- 84 (Last 30 days)
- 5.0 / 5
- Community
-
10 Jan 2020
Ray/box intersection using Smits' algorithm. The zip file includes one example of intersection.
Ray/box intersection using Smits' algorithmThe zip file includes one example of intersection.Author: Jesús MenaReferences:[1] "Efficiency issues for ray tracing". B. Smits. Journal of
- 2.4K (All time)
- 2 (Last 30 days)
- 4.3 / 5
- Community
-
3 Mar 2010
"boundary" class v2.1: a wrapper for surface objects
Adds functionality for fast detection of intersections between line segments and rendered surfaces
trajectory of projectiles and detecting when they have struck a surface. In the first version, I checked for a surface intersection by simply using interp2 to find the height of the ground beneath the
- 2.2K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
25 Nov 2008
Nagel Schreckenberg-based Signalized Intersection
A simulation of a 4-way signalized intersection based on the Nagel Schreckenberg model.
A simulation of a 4-way signalized intersection based on the Nagel Schreckenberg model. Extra rules are used inside the intersection to a) allow turns and b) prevent collisions. To get started, just
- 749 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
3 Jun 2013
- 18.1K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
20 Feb 2012
affineSpaceIntersection - Intersection of lines/planes/volumes/etc.
Compute intersections of lines, planes, volumes, etc. in arbitrary dimensions.
- 346 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
23 Mar 2015
- 2.1K (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
18 Jun 2010
Astronomy on the Personal Computer
The computer programs cover topics of interest in spherical astronomy and celestial mechanics.
- 1.1K (All time)
- 5 (Last 30 days)
- 5.0 / 5
- Community
-
18 Mar 2017
- 2K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Finds the intersection (common elements) of several (more than two) arrays
In MATLAB, there is a command called "intersect", which finds the set intersection (common elements) of two vectors. However, this command doesn't work if I want to compare more than two vectors and
- 1.7K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
31 Mar 2008
Analytical intersection area between two circles
Compute the intersection area between 2 circles. The function allows to evaluate the intersection ar
Compute the overlap area between 2 circles defined in an array Computation is vectorized, and intersection area are computed an analytical way. Input: Circles data presented in an array G of three
- 3.8K (All time)
- 3 (Last 30 days)
- 4.9 / 5
- Community
-
14 Aug 2007
Given two line segments, compute the intersection point.
% [E, lambda, gamma, isConvex] = lineIntersection(A,B,C,D)%% Given a line segment AB and another line segment CD, compute the point E% where the lines intersect.%% INPUTS:% A = [2,n] = [Ax;Ay] =
- 274 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
30 Apr 2016
Intersection of a plane with an arbitrary surface
Intersection of a plane with an arbitrary surface data. The surface must be in the form of faces and vertices strcture such as patch function and the faces of the surface must be defined with
- 1.8K (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
20 Nov 2014
A deduction engine useful for small expert systems and complex condition statements.
- 615 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
10 Oct 2015
- 10.1K (All time)
- 3 (Last 30 days)
- 4.6 / 5
- Community
-
29 Apr 2010
- 1.1K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
31 Jan 2017
This function computes n-times intersection region of shapes collection
This function computes n-times intersection region of shapes collection and allows to identify every intersection region in which shapes intersect.The function takes one argument as input, a
- 5.9K (All time)
- 1 (Last 30 days)
- 3.9 / 5
- Community
-
19 Jun 2009