gumyr/build123d

Topology Constructors: Compound

Closed this issue · 0 comments

The topology constructors are missing for the derived classes of Shape and therefore appear to have the same superset of parameters for all of them even though that isn't true. For example, the children parameter is restricted to Compound. In addition, class methods are required to create basic objects - for example Compound.make_compound(shapes).

These classes should get their own constructors and be able to accept class specific objects for the creation of the basic object. For Compound the following two signatures should be available:

  1. obj: TopoDS_Shape/TopoDS_Compound
  2. shages: Iterable[Shape]

(all of these would also have the label, color, material, joints, parent and children parameter)

The Compound.make_compound method will be deprecated and removed in the v1.0.0 release.