SGfindjointDoFofSG

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-18, Last change: 2025-09-14

try to find the DoF between two solids

Description

Very slow since 12 times collision detection
Still required to test

See Also: SGnearestpointsofSG , SGintersectFacetPoints

Example Illustration

 missing image of SGfindjointDoFofSG(A,B,slim,stol)

Syntax

[DOF,T]=SGfindjointDoFofSG(A,B,[slim,stol])

Input Parameter

A: Solid A
B: Solid B
slim: range limit for search; default is 10; inf works too.
stol: tolerance wrt to minimal point; default is .1; 1 = 100 Percent of minimal distance is accepted

Output Parameter

DOF: List [Avi Bvi dist nvec] of minimal distance point pairs
T: Frame to define the axis of DoF

Examples


A=SGbox; B=SGhollowsolid(A,1,4);; A=SGtransrelSG(A,B,'right',0.2); SGfindjointDoFofSG(A,B,inf)
A=SGbox; B=SGhollowsolid(A,1,4);; A=SGtransrelSG(A,B,'ontop',0.2); SGfindjointDoFofSG(A,B,inf)
A=SGsphere(5); B=SGhollowsolid(A,1,4); SGfindjointDoFofSG(A,B,inf)




Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21