-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2 : Multifile examples loaded from the example menu do not work #674
Comments
I don't think this can be fixed. Here's why... A project is a hiearchy of related files. From the examples...
The design uses 'relative' require statements to access the pieces.
Unlike drag-n-drop, the actual file system structure is unknown (unavailable). So, somehow, a file system needs to be created. There might be several solutions:
Number 1 really isn't feasible. configuring HTTP servers to expose file systems is almost 'forbidden', and this functionality is always a special extension. Number 2 isn't possible. pre-parsing code is not realistic. even if possible, further functionality is required to assemble the file system, and load the contents from the HTTP server. The solution is... 'drag-n-drop a project' or 'load a project'. |
V1... yeah. it supported 'include()'. this was pretty much a hack, which scanned the scripts and replaced the 'include()' statements with call to a function lookup. very ugly and very limited. also, there was a relative URL being composed / decomposed to obtain the 'relative' URL of the included file. |
Closing, as these 'project' based examples have been removed from the list of examples. |
Expected Behavior
If there is a multi-file example in the examples menu, it should load
Actual Behavior
It does not load
Steps to Reproduce the Problem
Click on the STL Import example in the examples menu
Specifications
The text was updated successfully, but these errors were encountered: