Skip to content

Box - Line intersection in 3D #1101

Open
@prittjam

Description

@prittjam
using Meshes
l = Meshes.Line((0.0,0.0),(1.0,1.0))
b = Meshes.Box((0.0,0.0),(1.0,1.0))
intersect(l,b)

crashes with

ERROR: StackOverflowError:^C
SYSTEM (REPL): showing an error caused an error
ERROR: InterruptException:
Stacktrace:
[1] active_module()
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:514
[2] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[3] invokelatest
@ ./essentials.jl:889 [inlined]
[4] active_module
@ ./show.jl:502 [inlined]
[5] show_type_name(io::IOContext{IOBuffer}, tn::Core.TypeName)
@ Base ./show.jl:1041
[6] _show_type(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:956
[7] show(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:953
[8] show_typeparams(io::IOContext{IOBuffer}, env::Core.SimpleVector, orig::Core.SimpleVector, wheres::Vector{TypeVar})
@ Base ./show.jl:710
[9] show_datatype(io::IOContext{IOBuffer}, x::DataType, wheres::Vector{TypeVar})
@ Base ./show.jl:1130
[10] show_datatype
@ ./show.jl:1077 [inlined]
[11] _show_type(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:961
[12] show(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:953
[13] show_typeparams(io::IOContext{IOBuffer}, env::Core.SimpleVector, orig::Core.SimpleVector, wheres::Vector{TypeVar})
@ Base ./show.jl:710
[14] show_typealias(io::IOContext{IOBuffer}, name::GlobalRef, x::Type, env::Core.SimpleVector, wheres::Vector{TypeVar})
@ Base ./show.jl:743
[15] show_typealias(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:796
[16] _show_type(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:958
[17] show(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:953
[18] show_typeparams(io::IOContext{IOBuffer}, env::Core.SimpleVector, orig::Core.SimpleVector, wheres::Vector{TypeVar})
@ Base ./show.jl:710
[19] show_datatype(io::IOContext{IOBuffer}, x::DataType, wheres::Vector{TypeVar})
@ Base ./show.jl:1130
[20] show_datatype
@ ./show.jl:1077 [inlined]
[21] _show_type(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:961
[22] show(io::IOContext{IOBuffer}, x::Type)
@ Base ./show.jl:953
[23] sprint(f::Function, args::Type; context::IOContext{IOBuffer}, sizehint::Int64)
@ Base ./strings/io.jl:112
[24] sprint
@ ./strings/io.jl:107 [inlined]
[25] #print_type_bicolor#564
@ ./show.jl:2672 [inlined]
[26] show_tuple_as_call(out::IOBuffer, name::Symbol, sig::Type; demangle::Bool, kwargs::Nothing, argnames::Vector{…}, qualified::Bool, hasfirst::Bool)
@ Base ./show.jl:2539
[27] show_tuple_as_call
@ ./show.jl:2507 [inlined]
[28] show_spec_sig(io::IOBuffer, m::Method, sig::Type)
@ Base.StackTraces ./stacktraces.jl:265
[29] show_spec_linfo(io::IOBuffer, frame::Base.StackTraces.StackFrame)
@ Base.StackTraces ./stacktraces.jl:232
[30] show(io::IOBuffer, frame::Base.StackTraces.StackFrame)
@ Base.StackTraces ./stacktraces.jl:270
[31] sprint(f::Function, args::Base.StackTraces.StackFrame; context::Nothing, sizehint::Int64)
@ Base ./strings/io.jl:114
[32] sprint
@ ./strings/io.jl:107 [inlined]
[33] _collapse_repeated_frames(trace::Vector{Any})
@ Base ./errorshow.jl:863
[34] process_backtrace(t::Vector{Base.StackTraces.StackFrame}, limit::Int64; skipC::Bool)
@ Base ./errorshow.jl:961
[35] process_backtrace (repeats 2 times)
@ ./errorshow.jl:908 [inlined]
[36] show_backtrace(io::IOContext{Base.TTY}, t::Vector{Base.StackTraces.StackFrame})
@ Base ./errorshow.jl:784
[37] showerror(io::IOContext{Base.TTY}, ex::StackOverflowError, bt::Vector{Base.StackTraces.StackFrame}; backtrace::Bool)
@ Base ./errorshow.jl:97
[38] show_exception_stack(io::IOContext{Base.TTY}, stack::Base.ExceptionStack)
@ Base ./errorshow.jl:975
[39] display_error(io::IOContext{Base.TTY}, stack::Base.ExceptionStack)
@ Base ./client.jl:111
[40] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[41] invokelatest
@ ./essentials.jl:889 [inlined]
[42] repl_display_error(errio::IO, errval::Any)
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:293
[43] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:310
[44] (::REPL.var"#57#58"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:284
[45] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:569
[46] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:282
[47] (::REPL.var"#do_respond#80"{…})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:911
[48] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[49] invokelatest
@ ./essentials.jl:889 [inlined]
[50] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2656
[51] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:1312
Some type information was truncated. Use show(err) to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions