They can both be correct depending, as usual, on the context.
This chocolate box is triangular in shape.
I drew a triangular shape on a piece of paper.
Note, however, that it would be more natural to say:
This chocolate box is triangular.
I drew a triangle on a piece of paper.