Hello,I'm a beginner in SolidStateDetectors, and I've installed the SolidStateDetectors package and Plots package using the following commands:
using Pkg
pkg"add SolidStateDetectors"
pkg"add Plots"
However, I encountered an issue when trying to create a plot with the error message "MethodError: no method matching mesh(::SolidStateDetectors.ConstructiveSolidGeometry.Polygon{4, Float64}, ::Int32)."
Here is my test code:
using SolidStateDetectors
import SolidStateDetectors.ConstructiveSolidGeometry as CSG
using Plots
T = Float64
#
path_to_example_primitives_config_files = joinpath(dirname(dirname(pathof(SolidStateDetectors))), "examples", "example_primitive_files")
example_primitives_config_filenames = readdir(path_to_example_primitives_config_files)
cfn = joinpath(path_to_example_primitives_config_files, "Box.yaml")
print(open(f -> read(f, String), cfn))
box = CSG.Geometry(T, cfn)
plot(box)
I'm running this code in a Jupyter Notebook in Visual Studio Code.
I would appreciate any suggestions you can provide to help me resolve this issue. Thank you very much.
Hello,I'm a beginner in SolidStateDetectors, and I've installed the SolidStateDetectors package and Plots package using the following commands:
However, I encountered an issue when trying to create a plot with the error message "MethodError: no method matching mesh(::SolidStateDetectors.ConstructiveSolidGeometry.Polygon{4, Float64}, ::Int32)." Here is my test code:
Here are the detailed error info
I'm running this code in a Jupyter Notebook in Visual Studio Code. I would appreciate any suggestions you can provide to help me resolve this issue. Thank you very much.