While writing a macro on VBScript to find the nearest two points in given two CATIA surfaces, I am facing some difficulty. It would be great if I could find a pre-defined function of CATIA or an algorithm to do the same.
1
There are 1 best solutions below
Related Questions in VBA
- Import from api into multiple excel cells
- Loop through list of files and open them
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Loop with equation for upper limit
- excel vba null value in array
- TextToColumns function uses wrong delimiter
- Access Global not working
- Concatenate string and number as number
- How do I extract info from crunchbase
- Excel needs to pull substring values to variables
- Act on Outlook mail item when opened for editing
- Macro is not working
- Excel 2013 VBA opening multiple windows for a single workbook
- Hyperlink directs to hidden row
- How to modify data in a range of a column of cells that are not blank
Related Questions in VBSCRIPT
- Run VBScript from C# with hidden window and capture output
- Calculate if trend is up, down or stable
- How to click a plain button on a webpage using VBScript?
- Error when attempting to get all elements with specific Class
- Read Hyperion Planning webform XML with VBScript
- Force OK the Privacy warning message in macro enabled MS excel using VBA
- Swapping attributes in AD
- Find and Replace code between #region tags in .cs file
- VBS- Can I exit a VBS message box that repeats itself without going to the task manager or cmd?
- Alternative of IN keyword of SQL in Siebel Server scripting for search spec?
- How to find files and then PSFTP to local system?
- Object CRT in VB script
- How can I get a one liner xcopy command to run in vbscript?
- Get a process path with VBS
- How do I reload an ASP page with a new querystring?
Related Questions in CATIA
- CATIA VBA, get CATPart and CATProduct linked documents
- Closest points between two curves
- CATIA VB.Net. edit axisSystem
- catia knowledgeware Hole AnchorMode
- CATIA vb.net error inserting PowerCopy
- Catia macro to change edited sketch
- Is it possible to target specific COM Instances of CATIA?
- How do I measure a non-updated point in CATIA VBA?
- How do I get the Aggregated Bodies from a CATPart in CATIA API's?
- How to use own created Automation Interface for CATIA V5 with Python?
- How to change orientation of sketch in CATIA using VB/Knowledgeware?
- C# Windows Service COM exception 80080005 when starting application
- hybridshapefill function of CATIA
- Insert part to assembly in 3DEXPERIENCE macro
- Select a range in Excel to paste a picture from CATIA v5 VBA
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Not an easy algorithm.
Divide your 3D space into 10 units in the X direction, 10 units in the Y direction, 10 units in the Z direction. You now have a 3D space which contains 1000 little cubes. Analyze each cube in space. Does the surface #1 cross that cube? Does Surface #2 cross that cube? If so, keep a record of that. Each cube of this workspace could have no surfaces crossing, both surfaces crossing or a crossing of either surface #1 or #2.
If any cubes have both surfaces crossing, the next step there.
do the divide by 10 units in each direction again (recursively) and do the analysis again. (etc...)
At some point you will have a 3D space where no subdivided cube has both curves crossing it. Run thru an analysis program to determine the distance between cubes with surface crossing. You should be able to find which two cubes are a minimum distance apart.
Use continued recursion and subdivision to optimize a solution.
Note: if you are using JavaScript, a library like Sylvester.js is REALLY handy for this problem.