Constructor: building mesh