Add cos input and numerical refinement for non-closed in Trihedron
Add histogram comparison