Construction of Finite-Element Models Conforming to Prescribed Boundary Shapes