No binding for SelectMgr_IndexedMapOfOwner type
Nobody has claimed this yet.
- #77 by @adam-urbanczyk — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start at the OCP SelectMgr bindings and the AIS_InteractiveContext::EntityOwners entry point, then compare the exposed argument with OCCT's SelectMgr_IndexedMapOfOwner documentation. Done means EntityOwners can be called from Python with the required map type instead of raising the reported incompatible-arguments error.
Written by the indexing model from the issue text.
Description
Calling method EntityOwners of AIS_InteractiveContext requires data type SelectMgr_IndexedMapOfOwner which seems to be missing in module SelectMgr of OCP. Calling the function contains the following report:
TypeError: EntityOwners(): incompatible function arguments. The following argument types are supported:
1. (self: OCP.AIS.AIS_InteractiveContext, theOwners: NCollection_Shared<NCollection_IndexedMap<opencascade::handle<SelectMgr_EntityOwner>,NCollection_DefaultHasher<opencascade::handle<SelectMgr_EntityOwner> > >,void>, theIObj: OCP.AIS.AIS_InteractiveObject, theMode: int = -1) -> Tuple[]
I guess the annotation for argument theOwners is an additional indication that the underlying C++ type is not associated with any Python type. I wonder if it would be possible to enable this method in OCP.
- Dominant language
- C++
- Stars
- 200
- Forks
- 48
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CadQuery/OCP
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Python 3.14t build Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
OCCT8
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·