Mapping a solid model into a 3D array
Not applicable
10-24-2018
08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Problem:
- I am trying to implement a path-finding algorithm capable of traversing space within a solid model.
In order to do this I first need to define the space that the algorithm would traverse. I was thinking of representing this space as a weighted 3D array/matrix. "Weighted" means that every coordinate has a certain "value" that would allow the algorithm to discriminate between good and bad moves.
Idea:
- Somehow getting the greatest and smallest X, Y, and Z coordinates in use. With "in use" I mean that the coordinate forms part of the model. These values would be used to define the dimensions of the 3D array/matrix.
- Traversing the model millimeter by millimeter and accessing the "contents" of each coordinate. In other words, I want to be able to identify if the coordinate is empty space or part of the solid model. This would allow me to determine if the coordinate can be traversed by the algorithm. Moreover, with this information I can determine the weight of the coordinate in the 3d array/matrix.
Approach:
- I know sketches in a construction plane can be traversed millimeter by millimeter. I have used this to map the contents of a construction plane into a 2d array/matrix. This is where the nature of my solution comes from.
I apologize in advance for the ambiguity of my idea, I can clarify any ambiguities if necessary. I am also very new to Fusion 360s API and Fusion 360 in general, so I apologize if the answer is trivial.
Summary: Is there a way to map a Fusion 360 model into a 3D array/matrix through the API?