R2022b - PDE Tblx - importGeometry : issues with STEP file import :
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lionel Juillen AF
el 3 de Jul. de 2023
Comentada: Lionel Juillen AF
el 20 de Ag. de 2023
Hello
I tried to use R2022b PDE toolbox importGeometry to read a STEP file..
s_STEP_file = 'pump.step' ;
figure ;
gm1 = importGeometry( s_STEP_file);
pdeplot(gm1,"FaceLabels","on","FaceAlpha",0.3);
and I got the following message :
Report : 581 unknown entities.
Error using gm1
Expected input to be one of these types:
double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64
Instead its type was pde.DiscreteGeometry.
Error in pdeplot (line 106)
validateattributes(varargin{1},{'numeric'},{'real', 'finite', 'nonsparse', 'nonnan'}, inputname(1));
Error in load_pump_STEP (line 20)
pdeplot(gm1,"FaceLabels","on","FaceAlpha",0.3)
It looks that 581 entities have not been read.. which ones ? types ? How to know ?
Is there somebody who knows what are the limitations ? or a documentation ?
I tried an example in the documentation :
figure
gm2 = importGeometry("AngleBlockBlendR10.step");
pdegplot(gm2,"FaceLabels","on","FaceAlpha",0.3)
it worked, but in gm2 object, there are no information about entities and face informations ?
How to get it ?
Thanks for your help
Regards
Lionel
0 comentarios
Respuesta aceptada
Shuba Nandini
el 17 de Ag. de 2023
Editada: Shuba Nandini
el 18 de Ag. de 2023
Hi Lionel,
I understand that you are unable to import a ‘s_STEP_file’ file using PDE toolbox in MATLAB R2022b. The error message indicates that the “gm1” object you are trying to use for plotting is of type “pde.DiscreteGeometry”, which is not the expected type for the “pdeplot” function. Instead, you can use "pdegplot" function because it can take DiscreteGeometry object as it's input arguments.
To learn more about “pdegplot” function, please refer to this link:
I hope this helps!
Regards,
Nandini
Más respuestas (0)
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!