def parse_footprint_body(self, body_json): """ Extract a body of a symbol. """ body = FBody() for shape in body_json.get('shapes'): parsed_shape = self.parse_shape(shape) body.add_shape(parsed_shape) body.layer = body_json.get('layer') return body
def parse_footprint_body(self, body_json): """ Extract a body of a symbol. """ body = FBody() for shape in body_json.get('shapes'): parsed_shape = self.parse_shape(shape) body.add_shape(parsed_shape) body.layer = body_json.get('layer') return body
def parse_footprint_body(self, body_json): """ Extract a body of a symbol. """ body = FBody() for shape in body_json.get('shapes'): parsed_shape = self.parse_shape(shape) body.add_shape(parsed_shape) body.layer = body_json.get('layer') body.rotation = body_json.get('rotation', 0) body.flip_horizontal = body_json.get('flip_horizontal', False) return body
def parse_footprint_body(self, body_json): """ Extract a body of a symbol. """ body = FBody() for shape in body_json.get('shapes'): parsed_shape = self.parse_shape(shape) body.add_shape(parsed_shape) body.layer = body_json.get('layer') body.rotation = body_json.get('rotation', 0) body.flip_horizontal = body_json.get('flip_horizontal', False) return body
def parse_footprint_body(self, body_json): """ Extract a body of a symbol. """ body = FBody() for shape in body_json.get("shapes"): parsed_shape = self.parse_shape(shape) body.add_shape(parsed_shape) body.layer = body_json.get("layer") body.rotation = body_json.get("rotation", 0) body.flip_horizontal = body_json.get("flip_horizontal", False) return body