A method of selecting or generating a design for a component of a patient interface device, the method including receiving a scan of at least a portion of a patient's face, receiving preference information about the patient, and generating a custom design or selecting a preexisting design for the component of the patient interface device based on the scan of at least a portion of the patient's face and the preference information, wherein a size or shape of the generated custom design for the component or selected preexisting design for the component is based on the preference information.