def createFromForm(form): """Create a material form using a Form instance.""" return MaterialForm( [MaterialPoint.createFromAbstract(point) for point in form.points])
def crossMaterialForm(self, other): """Return the material point of intersection between two material forms.""" f1 = self.abstract f2 = other.abstract points = f1.crossForm(f2) return [MaterialPoint.createFromAbstract(point) for point in points]