fixed the commented line that didn't load the curve file correctly
modified code to fetch triangle and curve geometry separately as functions