Message Boards Message Boards

0
|
938 Views
|
6 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Certain .stl files couldn't be Imported

Posted 3 months ago

I tried to import a 3d object into Masematica.
However, it stopped advancing from the running screen.
Other 3d object files could be imported.
If the file size is too large, can it not be imported?
Attached files that could not be imported.

Attachments:
POSTED BY: Megumi Kitano
6 Replies
Posted 3 months ago

Version is "13.3.1 for Microsoft Windows(64-bit)(July 24,2023)

furnitureBmesh = 
  Import[FileNameJoin[{"C:\\Users\sagalab\Documents\Wolfram \
Mathematica\sample5.stl"}]];
furnitureMesh = ToElementMesh[furnitureBmesh];
RegionPlot3D[furnitureMesh, 
 Sequence[PlotTheme -> "Detailed", PlotLegends -> None, 
  AxesLabel -> {"x", "y", "z"}, PlotStyle -> Directive[LightGray], 
  Mesh -> None, ImageSize -> Medium]]
POSTED BY: Megumi Kitano
Posted 3 months ago

Hi Megumi,

The Import works fine. It is ToElementMesh that seems to hang. I tried to abort evaluation after about 5 minutes and that did not work. I had to manually kill the kernel process. You should report this problem to Wolfram Support.

POSTED BY: Rohit Namjoshi

I have the same $Version. If I do Import with this file it works fine, but if I drag and drop from the finder Mathematica crashes.

POSTED BY: Gianluca Gorni
Posted 3 months ago

Hi Gianluca,

I am able to reproduce the crash when I drag and drop it into a new empty notebook. However, it works fine if I open a new empty notebook, evaluate 1+1, and then drag and drop. I will report this on the Wolfram Redmine bug tracker.

POSTED BY: Updating Name
Posted 3 months ago

What version of Mathematica are you using? Import works for me on "13.3.1 for Mac OS X ARM (64-bit) (July 24, 2023)"

Import["~/Downloads/sample5.stl"]

enter image description here

POSTED BY: Rohit Namjoshi
Posted 3 months ago

Version is "13.3.1 for Microsoft Windows(64-bit)(July 24,2023)

furnitureBmesh = 
  Import[FileNameJoin[{"C:\\Users\sagalab\Documents\Wolfram \
Mathematica\sample5.stl"}]];
furnitureMesh = ToElementMesh[furnitureBmesh];
RegionPlot3D[furnitureMesh, 
 Sequence[PlotTheme -> "Detailed", PlotLegends -> None, 
  AxesLabel -> {"x", "y", "z"}, PlotStyle -> Directive[LightGray], 
  Mesh -> None, ImageSize -> Medium]]
POSTED BY: Megumi Kitano
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract