No binding for SelectMgr_IndexedMapOfOwner type

Open
#76 2 comments 0 reactions 0 assignees View on GitHub

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
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, python
Domain
api, tooling

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CadQuery/OCP

All issues in CadQuery/OCP

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.