Menu

TIx

Help
Sergio
2018-05-27
2018-06-06
  • Sergio

    Sergio - 2018-05-27

    I am trying to use the code below to create isolines (DC1 is a dummy cube). It worked before, as in previous posts, when we had TGLisolines instead of TXisolines.
    Now, when I run the line "GLIsolines:= TXIsolines.CreateAsChild (DC1) ;" I get an error "access violation". Do you have any demo using this new TXisolines from contouring.pas ? Thanks in advance

    procedure TF_3DD.FormCreate(Sender: TObject);
    var pathMainDir,caminhoMedia:string;
    begin
    GLIsolines:= TXIsolines.CreateAsChild (DC1) ;
    GLIsolines.LineColor.Color := clrBlack;
    GLIsolines.LinePattern := $FFFF;
    GLIsolines.LineWidth := 2;
    GLIsolines.NodesAspect := lnaInvisible;
    GLIsolines.SplineMode := lsmSegments;
    GLIsolines.visible:= True;
    GLIsolines.Nodes.Clear;

     
  • Sergio

    Sergio - 2018-05-28

    Did any of you use the more recent GLcontouring.pas with success?

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2018-05-29

    Hi Sergio,
    I've compared versions and there were only TGL..->Tx.. renamings in GLTypes unit to be common with VXScene package. So it must work. Apply your project here or demo based on it, please, to fix the problem.
    PW

     
  • Sergio

    Sergio - 2018-05-29

    Hi Pavel. I really would like to put my project here. I did think about this some times before. The problem is that it is very big and integrated with a long calculation program. To put it in a understandable way for others It would take me more than one month to do

    I checked again considering that TGL..->Tx.. renamings in GLTypes unit to be common

    Following line by line I see that the information DC1 in the line "GLIsolines:= TXIsolines.CreateAsChild (DC1)" seems to disapear as below

    I know exactly the error point following with F7 (see variable owner.name below)

    "GLIsolines:= TXIsolines.CreateAsChild (DC1)" <<<<< DC1 dummy cube DC1.name = ‘DC1’

    GO TO

    constructor TGLBaseSceneObject.CreateAsChild(aParentOwner: TGLBaseSceneObject);
    begin
    Create(aParentOwner); <<<<<< aparentOwner.name = ‘DC1’
    aParentOwner.AddChild(Self);
    end;

    AND GO TO

    constructor TxIsolines.Create(AOwner: TComponent);
    begin
    LineList := TList.Create;
    IsolineState := ilsEmpty;
    Nodes.Create(Self); <<<<<<<<<<<
    end;

    AND GO TO

    constructor TGLLinesNodes.Create(AOwner: TComponent);
    begin
    inherited Create(AOwner, TGLLinesNode); <<<<< AOwner.name = “ (should be ‘DC1’ ?)
    end;

    AND THEM GO TO THE ERROR POINT

    constructor TGLNodes.Create(AOwner: TPersistent; AItemClass: TCollectionItemClass = nil);
    begin
    if not Assigned(AItemClass) then
    inherited Create(AOwner, TGLNode)
    else
    inherited Create(AOwner, AItemClass); <<<<< AOwner.name = E2003 Undeclared identifier: 'name'
    end;

     
  • Sergio

    Sergio - 2018-05-29

    Pavel I can send to your email the complete code of the GLscene part of my code. If you wish please write to my email sergiofeitoza@cognitor.com.br
    In the attachment there are some outputs of the code. If GLteam wish to do some necessary adaptations we could put together my code in SourceForce as a big free source code demo. It would be necessary only to replace my complete calculation code which generate the GEOMETRY and VALUES by one single case. In other words I could not put the calculation code there.

     
  • Sergio

    Sergio - 2018-05-29

    Note that the isolines are in the moving plane in the figures. In this case i calculate the temperatures of the electrical conductors and show them in the plane

     
  • Sergio

    Sergio - 2018-05-31

    Information to GLS team
    These last days I tried for many times to install the recent GLscene version using the installer and also using the previous method ( open GLScene_Win32.groupproj, compile all from here + intall Design time packages). Everything goes well up to "compile all" but in all the times when I try to compile the design packages I get the message "Can’t load package c:\Glscene\bpl\win32\Glscene_Physics_DT.bpl . The specified module could not be found" . I checked many times the library paths , etc... and could not find where I am doing an error. I also noticed that by some reason theTIXisilolines is not working in my computer. The point of error is described in the post above
    Then I installed again version GLScene_v1.4_December_2015_VCL just using the instructions in the install.txt file . It installs well using " compile all" + compile the design package. The SetUOinstaller do not work well in my computer. In this GLScene_v1.4_December_2015_VCL version, after installing, I had only to go back to TGLisolines instaed of TIXisolines and to adjust two variables names from (for example) TMeshObject to TGLmeshobject

    Regards

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2018-06-01

    Hi, Sergio
    By default v.1.6 is installing in d:\components\glscene directory and may be your c: disk is not available in OS windows 10 not having admin rights. Clean register before reinstalling. Please, send your project sources to me without your calculation units and I'll try to find out the fault.
    PW

     
  • Sergio

    Sergio - 2018-06-01

    I sent you Regards

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2018-06-03

    Sergio,
    I've updated TIsolines class. Now it's in GLIsolines unit instead of GLContouring one. Update your GLScene's code from trunk on SF. It should work with your application. As an example look at our previous demo in the attachment
    PW

     

    Last edit: Pavel Vassiliev 2018-06-03
  • Sergio

    Sergio - 2018-06-06

    Hi Pavel
    Great work. Everything works fine now using the last trunk version. Good idea to have the code in GLisolines instead of in countouring.pas
    In my big code is working fine also

    P.S: I am also finishing the implementation of a new site using Intraweb+Bootstrap and with my GLscene code running . I am completing and soon I will post the address
    Regards and thanks again
    Sergio

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.