Skip to content

Argument Parsing for Type Stability #11

@sjkelly

Description

@sjkelly

It seems as though this line is triggering some type instability:

TetGen.jl/src/cppwrapper.jl

Lines 290 to 296 in 4ce1bd5

function Base.convert(::Type{TetgenIO}, io::CPPTetgenIO{T}) where T
NSimplex = Int(io.numberofcorners)
NAttributes = Int(io.numberofpointattributes)
NMTr = Int(io.numberofpointmtrs)
IT = inttype(T) # TODO these are indices,
convert(TetgenIO{T, NSimplex, NAttributes, NMTr, IT, Vector{CFacet{T}}}, io)
end

One solution towards this is parsing of the arguments to determine the actual type parameters in the tetrahedralize function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions