vector of points in all_intersected_entities

Asked by Brent Fillery

An option to query mesh object intersections using python is mesh.all_intersected_entities(entities, ids_result); where mesh=dolfin.cpp.Mesh()

I can successfully return a result if a sinlge point object (dolfin.cpp.Point(x,y,x)) is supplied as argument entities. However i am having encountering errors when attempting to supply a list of points.

Documentation for this command indicates that the argument entities can be a list of point or a vector of point objects.

How does one correctly construct this vector of point objects?

For example, a simple list of point objects [p1, p2, ..., p3] is not a suitable for argument entities.

Thank you

Brent

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johan Hake (johan-hake) said :
#1

On Thursday February 3 2011 22:38:24 Brent Fillery wrote:
> New question #144050 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/144050
>
>
> An option to query mesh object intersections using python is
> mesh.all_intersected_entities(entities, ids_result); where
> mesh=dolfin.cpp.Mesh()
>
> I can successfully return a result if a sinlge point object
> (dolfin.cpp.Point(x,y,x)) is supplied as argument entities. However i am
> having encountering errors when attempting to supply a list of points.
>
> Documentation for this command indicates that the argument entities can be
> a list of point or a vector of point objects.
>
> How does one correctly construct this vector of point objects?
>
> For example, a simple list of point objects [p1, p2, ..., p3] is not a
> suitable for argument entities.

Unfortunaltely is this feature not yet supported in the Python interface.
Neither are other "list of" arguments.

File a bug report!

Johan

> Thank you
>
> Brent

Can you help with this problem?

Provide an answer of your own, or ask Brent Fillery for more information if necessary.

To post a message you must log in.