Plugin: Select face/edge by number

View: New views
8 Messages — Rating Filter:   Alert me  

Plugin: Select face/edge by number

by Bhavna Agarwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I had been trying to use the plugin 'select face by number'. I was expecting it to highlight the selected face specified by me in the face index. I tried to look into the code for this plugin, but all I found that the plugin does not initiate an update call on the viewport. The same applies to 'select edge by number'.

Is there a problem in my understanding? Also, I do not clearly understand the use of input mesh in the Node properties panel. Can someone please elaborate on that?

Thanks so much.

Bhavna

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by bART Janssens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 4, 2009 at 8:14 AM, Bhavna Agarwal <bhavna.ag@...> wrote:
> I had been trying to use the plugin 'select face by number'. I was expecting
> it to highlight the selected face specified by me in the face index. I tried
> to look into the code for this plugin, but all I found that the plugin does
> not initiate an update call on the viewport. The same applies to 'select
> edge by number'.

There appears to be a problem in mesh_instance.cpp, I'll try to fix it tonight.

> Is there a problem in my understanding? Also, I do not clearly understand

Redraws are triggered in mesh_instance, using the async_redraw slot.
This redraws the viewport when the application is "idle".

> the use of input mesh in the Node properties panel. Can someone please
> elaborate on that?

K-3D has a pipelined architecture. This means every node has a set of
inputs that generate output. In the case of a selection modifier, this
input is in the form of a mesh, given in the "input_mesh" property. In
the case of a selection modifier, only the selection arrays of the
given mesh are modified. See
http://www.k-3d.org/wiki/Visualization_Pipeline for more info.

Cheers,

--
Bart

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by bART Janssens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 4, 2009 at 8:14 AM, Bhavna Agarwal <bhavna.ag@...> wrote:
> I had been trying to use the plugin 'select face by number'. I was expecting
> it to highlight the selected face specified by me in the face index.

If you pull changesets
http://code.google.com/p/k3d-bart/source/detail?r=a76500c916dfc0e3a6b6642efa22a9ce0bf4fcec
and
http://code.google.com/p/k3d-bart/source/detail?r=76a370181170e37b63759d3970071bd7909259ef

things should work as expected, but you also need to do the following in K-3D:
- In the properties of the Instance of your mesh, set "Show Component
Selection" to true, since the default is off in object selection mode
- When you apply a modifier after the selection modifier, it will
default to "select all" in object mode. This can be overridden by
choosing "Reset Selection" in the Selection Options menu of the
modifier you apply.

Example:
- Create a PolyCube
- Select PolyCube Instance from the node list and flag "Show Component
Selection"
- Apply SelectPointByNumber using the right-click menu
- Play with the point number and watch as the highlighting changes in
the viewport
- Apply TranslatePoints using the right-click menu
- Click the "Reset Selection" option from the "Selection Options" menu
in the TranslatePoints property page.
- Now only the point selected by SelectPointByNumber should move if
you change X, Y, or Z

Cheers,

--
Bart

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by Timothy M. Shead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bart Janssens wrote:

> If you pull changesets
> http://code.google.com/p/k3d-bart/source/detail?r=a76500c916dfc0e3a6b6642efa22a9ce0bf4fcec
> and
> http://code.google.com/p/k3d-bart/source/detail?r=76a370181170e37b63759d3970071bd7909259ef

Merged with changes - you should have a look at

http://k3d.hg.sf.net/hgweb/k3d/k3d/rev/2eb79adb1a5c

to see the explicit distinction between property types and property
roles when instantiating custom controls.

Cheers,
Tim

[tshead.vcf]

begin:vcard
fn:Timothy Shead
n:Shead;Timothy
org:www.k-3d.org
email;internet:tshead@...
title:Founder
x-mozilla-html:FALSE
version:2.1
end:vcard



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by Bhavna Agarwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Thanks for the patch. I modified the files as directed and tried to re-build. However, I get the following error in doing so:

../mesh_instance.cpp:104: error: no matching function for call to ‘merge(const k3d::mesh_selection, k3d::mesh&)’

As I see in the geometry.h file, the former parameter in 'merge' should be of type selection_set.
Can someone please look into this?


Bhavna


On Mon, Oct 5, 2009 at 2:45 AM, Timothy M. Shead <tshead@...> wrote:
Merged with changes - you should have a look at

http://k3d.hg.sf.net/hgweb/k3d/k3d/rev/2eb79adb1a5c

to see the explicit distinction between property types and property roles when instantiating custom controls.

Cheers,
Tim

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by Daniel Scott Matthews :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 6, 2009 at 4:12 AM, Bhavna Agarwal <bhavna.ag@...> wrote:

> Hi,
>
> Thanks for the patch. I modified the files as directed and tried to
> re-build. However, I get the following error in doing so:
>
> ../mesh_instance.cpp:104: error: no matching function for call to
> ‘merge(const k3d::mesh_selection, k3d::mesh&)’
>
> As I see in the geometry.h file, the former parameter in 'merge' should be
> of type selection_set.
> Can someone please look into this?
>
>
> Bhavna
>
>
> On Mon, Oct 5, 2009 at 2:45 AM, Timothy M. Shead <tshead@...> wrote:
>>
>> Bart Janssens wrote:
>>
>>> If you pull changesets
>>>
>>> http://code.google.com/p/k3d-bart/source/detail?r=a76500c916dfc0e3a6b6642efa22a9ce0bf4fcec
>>> and
>>>
>>> http://code.google.com/p/k3d-bart/source/detail?r=76a370181170e37b63759d3970071bd7909259ef
>>
>> Merged with changes - you should have a look at
>>
>> http://k3d.hg.sf.net/hgweb/k3d/k3d/rev/2eb79adb1a5c
>>
>> to see the explicit distinction between property types and property roles
>> when instantiating custom controls.
>>
>> Cheers,
>> Tim
>>

As at UTC  2009-10-05 18:39:55 the current state of
http://k3d.hg.sf.net/hgweb/k3d/ is build-able, see
http://www.k-3d.org/cdash/buildSummary.php?buildid=303 for results.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by bART Janssens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> As at UTC  2009-10-05 18:39:55 the current state of
> http://k3d.hg.sf.net/hgweb/k3d/ is build-able, see
> http://www.k-3d.org/cdash/buildSummary.php?buildid=303 for results.

Yep, you should start from the sf.net mercurial repository, if you
haven't already. See http://www.k-3d.org/wiki/Code

My patch was against the latest official repository, but it is now
part of that. The error you were getting indicates you tried to apply
it to an older version of K-3D

Cheers,

--
Bart

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Plugin: Select face/edge by number

by Bhavna Agarwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh yeah. There was a problem due to conflicting versions.

Thanks
~b~

On Mon, Oct 5, 2009 at 3:16 PM, Bart Janssens <bart.janssens@...> wrote:
> As at UTC  2009-10-05 18:39:55 the current state of
> http://k3d.hg.sf.net/hgweb/k3d/ is build-able, see
> http://www.k-3d.org/cdash/buildSummary.php?buildid=303 for results.

Yep, you should start from the sf.net mercurial repository, if you
haven't already. See http://www.k-3d.org/wiki/Code

My patch was against the latest official repository, but it is now
part of that. The error you were getting indicates you tried to apply
it to an older version of K-3D

Cheers,

--
Bart

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development